Add ecosystem.config.js for production pm2 deployment
This commit is contained in:
1 parent
dfe26cf32c
commit
525b9ceead
1 file changed
+29
@@ -0,0 +1,29 @@
|
|||||||
|
module.exports = {
|
||||||
|
apps: [
|
||||||
|
{
|
||||||
|
name: "backone-frontend",
|
||||||
|
script: "npm",
|
||||||
|
args: "start",
|
||||||
|
env: {
|
||||||
|
NODE_ENV: "production",
|
||||||
|
PORT: 3000
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "backone-backend",
|
||||||
|
script: "./backend/server.js",
|
||||||
|
env: {
|
||||||
|
NODE_ENV: "production",
|
||||||
|
PORT: 3001
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "backone-proxy",
|
||||||
|
script: "./proxy/index.js",
|
||||||
|
env: {
|
||||||
|
NODE_ENV: "production",
|
||||||
|
PORT: 4000
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
Reference in new issue
Block a user