mirror of
https://github.com/Unitech/pm2.git
synced 2026-02-01 16:57:09 +00:00
Merge pull request #3542 from rmonnier/default-start-ecosystem
Start the ecosystem file in PWD by default
This commit is contained in:
commit
c65595f4a7
5
bin/pm2
5
bin/pm2
@ -253,7 +253,7 @@ function patchCommanderArg(cmd) {
|
||||
//
|
||||
// Start command
|
||||
//
|
||||
commander.command('start <file|json|stdin|app_name|pm_id...>')
|
||||
commander.command('start [file|json|stdin|app_name|pm_id...]')
|
||||
.option('--watch', 'Watch folder for changes')
|
||||
.option('--fresh', 'Rebuild Dockerfile')
|
||||
.option('--daemon', 'Run container in Daemon mode (debug purposes)')
|
||||
@ -280,6 +280,9 @@ commander.command('start <file|json|stdin|app_name|pm_id...>')
|
||||
else {
|
||||
// Commander.js patch
|
||||
cmd = patchCommanderArg(cmd);
|
||||
if (cmd.length === 0) {
|
||||
cmd = [cst.APP_CONF_DEFAULT_FILE];
|
||||
}
|
||||
async.forEachLimit(cmd, 1, function(script, next) {
|
||||
pm2.start(script, commander, next);
|
||||
}, function(err) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user