部署保险端项目和大屏
This commit is contained in:
28
insurance_backend/ecosystem.config.js
Normal file
28
insurance_backend/ecosystem.config.js
Normal file
@@ -0,0 +1,28 @@
|
||||
module.exports = {
|
||||
apps: [{
|
||||
name: 'insurance-backend',
|
||||
script: 'src/app.js',
|
||||
instances: 1,
|
||||
exec_mode: 'fork',
|
||||
env: {
|
||||
NODE_ENV: 'production',
|
||||
PORT: 3000,
|
||||
FRONTEND_URL: 'https://ad.ningmuyun.com'
|
||||
},
|
||||
env_production: {
|
||||
NODE_ENV: 'production',
|
||||
PORT: 3000,
|
||||
FRONTEND_URL: 'https://ad.ningmuyun.com'
|
||||
},
|
||||
error_file: './logs/err.log',
|
||||
out_file: './logs/out.log',
|
||||
log_file: './logs/combined.log',
|
||||
time: true,
|
||||
max_memory_restart: '1G',
|
||||
restart_delay: 4000,
|
||||
max_restarts: 10,
|
||||
min_uptime: '10s',
|
||||
watch: false,
|
||||
ignore_watch: ['node_modules', 'logs']
|
||||
}]
|
||||
};
|
||||
Reference in New Issue
Block a user