Initial Commit
This commit is contained in:
28
ecosystem.config.js
Normal file
28
ecosystem.config.js
Normal file
@ -0,0 +1,28 @@
|
||||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: "svc-hcm-crawler",
|
||||
script: "dist/src/index.js",
|
||||
instances: 1,
|
||||
exec_mode: "fork",
|
||||
watch: false,
|
||||
max_memory_restart: "500M",
|
||||
error_file: "./logs/pm2-error.log",
|
||||
out_file: "./logs/pm2-out.log",
|
||||
log_date_format: "YYYY-MM-DD HH:mm:ss Z",
|
||||
merge_logs: true,
|
||||
env: {
|
||||
NODE_ENV: "default",
|
||||
TZ: "Asia/Jakarta"
|
||||
},
|
||||
env_production: {
|
||||
NODE_ENV: "prod",
|
||||
TZ: "Asia/Jakarta"
|
||||
},
|
||||
autorestart: true,
|
||||
max_restarts: 10,
|
||||
min_uptime: "10s"
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user