mirror of
https://github.com/Unitech/pm2.git
synced 2026-02-01 16:57:09 +00:00
feat(pm2): add pm2 init option to generate an ecosystem file
This commit is contained in:
parent
a38fd199b9
commit
5d56fac7cc
@ -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
|
||||
|
||||
1
bin/pm2
1
bin/pm2
@ -664,7 +664,6 @@ commander.command('logrotate')
|
||||
//
|
||||
|
||||
commander.command('ecosystem [mode]')
|
||||
.alias('generate')
|
||||
.alias('init')
|
||||
.description('generate a process conf file. (mode = null or simple)')
|
||||
.action(function(mode) {
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user