Skip to content

Commit

Permalink
Merge pull request #3542 from rmonnier/default-start-ecosystem
Browse files Browse the repository at this point in the history
Start the ecosystem file in PWD by default
  • Loading branch information
wallet77 authored Mar 19, 2018
2 parents b371865 + 799c48e commit c65595f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/pm2
Original file line number Diff line number Diff line change
Expand Up @@ -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)')
Expand All @@ -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) {
Expand Down

0 comments on commit c65595f

Please sign in to comment.