diff --git a/lib/forever.js b/lib/forever.js index 4892183b..bc69b9d5 100644 --- a/lib/forever.js +++ b/lib/forever.js @@ -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');