diff --git a/README.md b/README.md index 4fcbee4c..c7ac5dfb 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,8 @@ In addition to passing forever the path to a script (along with accompanying opt "append": true, "watch": true, "script": "index.js", - "sourceDir": "/home/myuser/app" + "sourceDir": "/home/myuser/app", + "env": {Object} } ``` @@ -156,7 +157,8 @@ JSON configuration files can also be used to define the startup options for *mul "append": true, "watch": true, "script": "index.js", - "sourceDir": "/home/myuser/app1" + "sourceDir": "/home/myuser/app1", + "env": {Object} }, { // App2 diff --git a/lib/forever/cli.js b/lib/forever/cli.js index e6a284aa..1f0a3d10 100644 --- a/lib/forever/cli.js +++ b/lib/forever/cli.js @@ -208,7 +208,7 @@ var getOptions = cli.getOptions = function (file) { 'pidFile', 'logFile', 'errFile', 'watch', 'minUptime', 'append', 'silent', 'outFile', 'max', 'command', 'path', 'spinSleepTime', 'sourceDir', 'workingDir', 'uid', 'watchDirectory', 'watchIgnore', - 'killTree', 'killSignal', 'id' + 'killTree', 'killSignal', 'id', 'env' ], specialKeys = ['script', 'args'], configs;