Add ecosystem.config.js for production pm2 deployment

This commit is contained in:
Rafif-Riqullah-Siregar committed 2026-07-10 14:15:14 +07:00
1 parent dfe26cf32c
commit 525b9ceead
1 file changed
+29
+29
View File
@@ -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
}
}
]
};