From 799c48e77378c35233b14fdea4d0888eb4033b0a Mon Sep 17 00:00:00 2001 From: Robin Monnier Date: Fri, 16 Mar 2018 16:29:13 +0100 Subject: [PATCH] start ecosystem file with pm2 start by default --- bin/pm2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/pm2 b/bin/pm2 index 05072f4bc..1f989a229 100755 --- a/bin/pm2 +++ b/bin/pm2 @@ -253,7 +253,7 @@ function patchCommanderArg(cmd) { // // Start command // -commander.command('start ') +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 ') 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) {