Skip to content

Commit

Permalink
Process variables are not always available, for example if you execute
Browse files Browse the repository at this point in the history
forever with a different process like monit.
  • Loading branch information
3rd-Eden committed Jul 14, 2011
1 parent 7ff26de commit 1c0792e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/forever.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ forever.log.cli();
// Export `version` and important Prototypes from `lib/forever/*`
//
forever.initialized = false;
forever.root = path.join(process.env.HOME, '.forever');
forever.root = path.join(process.env.HOME || '/root', '.forever');
forever.config = new nconf.stores.File({ file: path.join(forever.root, 'config.json') });
forever.Forever = forever.Monitor = require('./forever/monitor').Monitor;
forever.cli = require('./forever/cli');
Expand Down

0 comments on commit 1c0792e

Please sign in to comment.