Skip to content

Instantly share code, notes, and snippets.

@pongo
Created August 19, 2018 02:04
Show Gist options
  • Save pongo/a22e58cf33dcee0b8bf24a29a767e956 to your computer and use it in GitHub Desktop.
Save pongo/a22e58cf33dcee0b8bf24a29a767e956 to your computer and use it in GitHub Desktop.
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 : {}
};
pm2 reload rapturebot
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