mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
15 lines
587 B
JavaScript
15 lines
587 B
JavaScript
|
|
// Prevent production server from crashing completely
|
|
if(process.env.NODE_ENV === 'production') {
|
|
process.on('uncaughtException', function (err) {
|
|
console.error(err);
|
|
console.log("Node NOT Exiting...");
|
|
});
|
|
}
|
|
|
|
require('coffee-script') // remove intermediate compilation requirement
|
|
require('./src/server').listen(process.env.PORT || 3000);
|
|
|
|
// Note: removed "up" module, which is default for development (but interferes with and production + PaaS)
|
|
// Restore to 5310bb0 if I want it back (see https://github.com/codeparty/derby/issues/165#issuecomment-10405693)
|