Created
June 28, 2017 02:52
-
-
Save jpike88/4e89a02749518fada7879d471ac8523c to your computer and use it in GitHub Desktop.
ecosystem.json
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
{ | |
/** | |
* 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