deploy: add pm2 ecosystem file
This commit is contained in:
parent
65bc3551c2
commit
1ce34939be
15
ecosystem.config.cjs
Normal file
15
ecosystem.config.cjs
Normal file
@ -0,0 +1,15 @@
|
||||
module.exports = {
|
||||
apps: [{
|
||||
name: 's22-poll',
|
||||
script: './server/server.js',
|
||||
instances: 1,
|
||||
exec_mode: 'fork',
|
||||
env: {
|
||||
NODE_ENV: 'development'
|
||||
},
|
||||
env_production: {
|
||||
NODE_ENV: 'production',
|
||||
PORT: 3001
|
||||
}
|
||||
}]
|
||||
};
|
||||
Loading…
Reference in New Issue
Block a user