pm2-sync
v1.2.1
Published
Manage your pm2 apps with an ease.
Readme
pm2-sync
Manage your pm2 apps with an ease.
Usage
npx pm2-sync sync pm2.config.jsThen you can see your pm2 applications listed in pm2.conf:
# in dev.conf
. stopped-application
$ running-applicationYou can manage your pm2 applications by modifying pm2.conf, just update the first character of each line and save it:
+ start-application
- stop-application
@ restart-application
! delete-applicationpm2-sync will manage the applications for you:
updating
starting start-application...
stopping stop-application...
restarting restart-application...
deleting delete-application...
updatedpm2-sync sync
Synchronize pm2 process with process managing file.
[path...]
Paths to pm2 configuration files.
-c, --config [path]
Path to process managing file. Default: pm2.conf.
pm2-sync start
Start synchronize task in background with pm2. Any arguments for sync command can be passed.
-n, --name [name]
Name for synchronize task in pm2.
