← back to Handbag Auth Nextjs
scripts/devops/pm2-config.json
36 lines
{
"apps": [
{
"name": "auction-viewer",
"script": "./server.js",
"cwd": "/root/Projects/handbag-auth-nextjs/auction-viewer",
"instances": 1,
"exec_mode": "fork",
"autorestart": true,
"watch": false,
"max_memory_restart": "500M",
"env": {
"NODE_ENV": "production",
"PORT": 7500
},
"error_file": "/root/Projects/handbag-auth-nextjs/logs/pm2-error.log",
"out_file": "/root/Projects/handbag-auth-nextjs/logs/pm2-out.log",
"log_date_format": "YYYY-MM-DD HH:mm:ss Z",
"merge_logs": true,
"min_uptime": "10s",
"max_restarts": 10,
"restart_delay": 4000,
"kill_timeout": 5000,
"listen_timeout": 3000,
"shutdown_with_message": true,
"wait_ready": false,
"autorestart": true,
"vizion": false,
"post_update": ["npm install"],
"watch_options": {
"followSymlinks": false
}
}
]
}