Browse Source

Create a PM2 config for the services.

master
Zed A. Shaw 1 week ago
parent
commit
cb4c058a45
  1. 45
      prod.config.cjs

45
prod.config.cjs

@ -0,0 +1,45 @@
module.exports = {
apps: [
{
name: 'api',
script: './services/api.js',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'development'
},
env_production: {
NODE_ENV: 'production'
}
},
{
name: 'queue',
script: './services/qserver.js',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'development'
},
env_production: {
NODE_ENV: 'production'
}
},
{
name: 'tracker',
script: './services/tracker.js',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'development'
},
env_production: {
NODE_ENV: 'production'
}
},
]}
Loading…
Cancel
Save