Skip to content

Instantly share code, notes, and snippets.

@jpike88
Created June 28, 2017 02:52
Show Gist options
  • Save jpike88/4e89a02749518fada7879d471ac8523c to your computer and use it in GitHub Desktop.
Save jpike88/4e89a02749518fada7879d471ac8523c to your computer and use it in GitHub Desktop.
ecosystem.json
{
/**
* Application configuration section
* http://pm2.keymetrics.io/docs/usage/application-declaration/
*/
"apps" : [
// First application
{
"name" : "API",
"script" : "bin/server.js",
"env_production" : {
"NODE_ENV": "production"
},
"post_update": [
"pm2 restart all"
]
},
{
"name" : "Form Processing Loop",
"script" : "bin/send_loop.js",
"env_production" : {
"NODE_ENV": "production"
},
"post_update": [
"pm2 restart all"
]
},
{
"name" : "Checks Loop",
"script" : "bin/checks.js",
"env_production" : {
"NODE_ENV": "production"
},
"post_update": [
"pm2 restart all"
]
},
{
"name" : "Integration Loop",
"script" : "bin/integration.js",
"env_production" : {
"NODE_ENV": "production"
},
"post_update": [
"pm2 restart all"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment