mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
Handle empty check for environment
This commit is contained in:
parent
09232ffdef
commit
2d0e156414
@ -895,7 +895,7 @@ API.prototype._startJson = function(file, opts, action, pipe, cb) {
|
||||
app.ignore_watch = opts.ignore_watch;
|
||||
if (opts.instances && typeof(opts.instances) === 'number')
|
||||
app.instances = opts.instances;
|
||||
if (app.envSpecificInstance) {
|
||||
if (app.envSpecificInstance && opts.env) {
|
||||
app.name += ('-' + opts.env);
|
||||
}
|
||||
apps_name.push(app.name);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user