-
-
Save pongo/a22e58cf33dcee0b8bf24a29a767e956 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
/** | |
* Application configuration section | |
* http://pm2.keymetrics.io/docs/usage/application-declaration/ | |
*/ | |
apps : [ | |
{ | |
name: 'rapturebot', | |
script: 'main.py', | |
cwd: '/home/rapture/rapturebot/', | |
interpreter: '/home/rapture/rapturebot/venv/bin/python', | |
watch: false, | |
max_restarts: 10, | |
}, | |
{ | |
name: 'ktolivnul', | |
script: 'main.py', | |
cwd: '/home/rapture/ktolivnul/', | |
interpreter: '/home/rapture/ktolivnul/venv/bin/python', | |
watch: false, | |
}, | |
], | |
/** | |
* Deployment section | |
* http://pm2.keymetrics.io/docs/usage/deployment/ | |
*/ | |
deploy : {} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pm2 reload rapturebot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pm2 stop all | |
pm2 delete all | |
pm2 start /home/rapture/pm2.config.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment