Add ability to specify env variables in JSON

By not overwriting the env object in the JSON, it allow us to specify
env variables directly in the JSON.
This commit is contained in:
Loïc Mahieu 2014-01-02 18:53:01 +01:00
parent 7b2f497907
commit cbb5acacb9

View File

@ -31,9 +31,8 @@ Common.resolveAppPaths = function(app, cwd, outputter) {
cwd = cwd || process.cwd();
app.env = {
pm_cwd: cwd
};
app.env = app.env || {};
app.env.pm_cwd = cwd;
if (!('exec_mode' in app)) app['exec_mode'] = 'cluster_mode';