Add PM2 ecosystem config for production deployment
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: 'hope-events-backend',
|
||||
cwd: __dirname + '/backend',
|
||||
script: 'src/index.js',
|
||||
env: { NODE_ENV: 'production' },
|
||||
},
|
||||
{
|
||||
name: 'hope-events-frontend',
|
||||
cwd: __dirname + '/frontend',
|
||||
script: 'npm',
|
||||
args: 'start -- -p 3001',
|
||||
env: { NODE_ENV: 'production' },
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user