38 lines
958 B
JavaScript
38 lines
958 B
JavaScript
module.exports = {
|
|
apps: [{
|
|
name: 'government-backend',
|
|
script: 'app.js',
|
|
cwd: '/var/www/government-backend',
|
|
instances: 1,
|
|
autorestart: true,
|
|
watch: false,
|
|
max_memory_restart: '1G',
|
|
env: {
|
|
NODE_ENV: 'development',
|
|
PORT: 5352
|
|
},
|
|
env_production: {
|
|
NODE_ENV: 'production',
|
|
PORT: 5352,
|
|
DB_DIALECT: 'mysql',
|
|
DB_HOST: '129.211.213.226',
|
|
DB_PORT: 9527,
|
|
DB_DATABASE: 'ningxia_zhengfu',
|
|
DB_USER: 'root',
|
|
DB_PASSWORD: 'aiotAiot123!',
|
|
JWT_SECRET: 'government_super_secret_jwt_key_2024_very_long_and_secure',
|
|
LOG_LEVEL: 'info'
|
|
},
|
|
error_file: './logs/err.log',
|
|
out_file: './logs/out.log',
|
|
log_file: './logs/combined.log',
|
|
time: true,
|
|
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
|
|
merge_logs: true,
|
|
max_restarts: 10,
|
|
min_uptime: '10s',
|
|
kill_timeout: 5000,
|
|
listen_timeout: 8000,
|
|
shutdown_with_message: true
|
|
}]
|
|
}; |