Initial Commit

This commit is contained in:
Sony Surahmn
2025-12-10 19:00:39 +07:00
commit e5baaf003a
12 changed files with 4043 additions and 0 deletions

28
ecosystem.config.js Normal file
View 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"
}
]
};