mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-01 15:31:16 +00:00
don't use "up" on production or debug, only development
This commit is contained in:
parent
29acf91e03
commit
0bfdc907fc
1 changed files with 8 additions and 1 deletions
|
|
@ -1 +1,8 @@
|
|||
require('derby').run(__dirname + '/lib/server')
|
||||
if (process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'debug') {
|
||||
// "up" module interferes with node debug & node-inspector
|
||||
// also, nodejitsu (aka, 'production') doesn't like up
|
||||
console.log("Using require('./lib/server').listen(3000) without Up");
|
||||
require('./lib/server').listen(3000);
|
||||
} else {
|
||||
require('derby').run(__dirname + '/lib/server');
|
||||
}
|
||||
Loading…
Reference in a new issue