Skip to content

Instantly share code, notes, and snippets.

@bdbaddog
Created February 1, 2017 22:53
Show Gist options
  • Save bdbaddog/49c0d998cb8d5333bf9c0d0feee49d23 to your computer and use it in GitHub Desktop.
Save bdbaddog/49c0d998cb8d5333bf9c0d0feee49d23 to your computer and use it in GitHub Desktop.
pm2 process file
module.exports = {
/**
* Application configuration section
* http://pm2.keymetrics.io/docs/usage/application-declaration/
*/
apps : [
// First application
{
name : "jp",
script : "jp/index.js",
cwd : "/home/jgins/jp",
env: {
"MODE": "PRODUCTION",
"PORT": 2237,
},
},
// Second application
{
name : "jd",
script : "jd/index.js",
cwd : "/home/jgins/jd",
env: {
"MODE": "DEVEL",
"PORT": 2238,
},
}
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment