Created
February 1, 2017 22:53
-
-
Save bdbaddog/49c0d998cb8d5333bf9c0d0feee49d23 to your computer and use it in GitHub Desktop.
pm2 process file
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 : [ | |
// 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