Path: blob/master/ecosystem.config.js
5154 views
module.exports = {1apps: [2{3name: 'HolyUBLTS',4script: './backend.js',5env: {6PORT: 8080,7NODE_ENV: 'development',8},9env_production: {10PORT: 8080,11NODE_ENV: 'production',12},13instances: '1',14exec_interpreter: 'babel-node',15exec_mode: 'fork',16autorestart: true,17exp_backoff_restart_delay: 100,18cron_restart: '*/10 * * * *',19kill_timeout: 3000,20watch: false,21},22{23name: 'HolyUBLTS-src-refresh',24script: './run-command.mjs',25args: 'build',26env: {27NODE_ENV: 'development',28},29env_production: {30NODE_ENV: 'production',31},32instances: '1',33exec_interpreter: 'babel-node',34exec_mode: 'fork',35autorestart: true,36restart_delay: 1000 * 60 * 10,37kill_timeout: 3000,38watch: false,39},40{41name: 'HolyUBLTS-cache-clean',42script: './run-command.mjs',43args: 'clean',44env: {45NODE_ENV: 'development',46},47env_production: {48NODE_ENV: 'production',49},50instances: '1',51exec_interpreter: 'babel-node',52exec_mode: 'fork',53autorestart: true,54restart_delay: 1000 * 60 * 60 * 24 * 7,55kill_timeout: 3000,56watch: false,57},58],59};606162