mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-11 14:39:37 +00:00
prevent crash, ignore exceptions
This commit is contained in:
parent
76ae83b2f0
commit
9083b5e6bf
1 changed files with 5 additions and 0 deletions
|
|
@ -1,3 +1,8 @@
|
|||
process.on('uncaughtException', function (exception) {
|
||||
console.error(exception);
|
||||
// don't crash for now
|
||||
});
|
||||
|
||||
require('coffee-script') // remove intermediate compilation requirement
|
||||
require('./src/server').listen(process.env.PORT || 3000);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue