From 59780f99eaed2860a35f93aed2249e2458868447 Mon Sep 17 00:00:00 2001 From: Alex Pedrero Date: Sun, 7 May 2017 16:17:46 -0300 Subject: [PATCH 1/2] env settings option added to configuration files --- README.md | 8 +++++--- lib/forever/cli.js | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4fcbee4c..7eb0d4b3 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 @@ -165,7 +167,7 @@ JSON configuration files can also be used to define the startup options for *mul "watch": true, "script": "index.js", "sourceDir": "/home/myuser/app2", - "args": ["--port", "8081"] + "args": ["--port", "8081"], } ] ``` 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; From aefe195aaddee7b4aea05ed9fc676828b943f901 Mon Sep 17 00:00:00 2001 From: Alex Pedrero Date: Sun, 7 May 2017 16:29:50 -0300 Subject: [PATCH 2/2] update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7eb0d4b3..c7ac5dfb 100644 --- a/README.md +++ b/README.md @@ -167,7 +167,7 @@ JSON configuration files can also be used to define the startup options for *mul "watch": true, "script": "index.js", "sourceDir": "/home/myuser/app2", - "args": ["--port", "8081"], + "args": ["--port", "8081"] } ] ```