Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(pm2): add pm2 init option to generate an ecosystem file #3459

Merged
merged 2 commits into from
Feb 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ $ pm2 resurrect # Restore previously saved processes
$ pm2 unstartup # Disable and remove startup system

$ pm2 update # Save processes, kill PM2 and restore processes
$ pm2 generate # Generate a sample json configuration file
$ pm2 init # Generate a sample js configuration file

# Deployment
$ pm2 deploy app.json prod setup # Setup "prod" remote server
Expand Down
2 changes: 1 addition & 1 deletion bin/pm2
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ commander.command('logrotate')
//

commander.command('ecosystem [mode]')
.alias('generate')
.alias('init')
.description('generate a process conf file. (mode = null or simple)')
.action(function(mode) {
pm2.generateSample(mode);
Expand Down
4 changes: 2 additions & 2 deletions test/bash/cli-actions-1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ spec "Should list processes successfully"
$pm2 start multi-echo.json
spec "Should start multiple applications"

$pm2 generate echo
spec "Should generate echo sample json"
$pm2 init echo
spec "Should init echo sample json"

$pm2 start echo-pm2.json -f
spec "Should start echo service"
Expand Down