mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 16:02:14 +00:00
don't crash on error
This commit is contained in:
parent
76f2bf05a6
commit
7bbc46b2d4
1 changed files with 5 additions and 0 deletions
|
|
@ -1,3 +1,8 @@
|
|||
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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue