deploy: add pm2 ecosystem file

This commit is contained in:
ethanf 2025-08-14 13:59:29 -05:00
parent 65bc3551c2
commit 1ce34939be

15
ecosystem.config.cjs Normal file
View 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
}
}]
};