mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
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:
parent
7b2f497907
commit
cbb5acacb9
@ -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';
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user