add ecosystem

This commit is contained in:
Amirhossein Mahmoodi
2024-04-29 15:35:01 +03:30
parent 886a5a88a2
commit 61a16fe5bb

View File

@@ -0,0 +1,18 @@
module.exports = {
apps: [{
name: "rms-v3",
script: 'node_modules/next/dist/bin/next', // cluster mode run with node only, not npm
args: 'start -p 3000',
exec_mode: "cluster", // default fork
instances: "max",
kill_timeout: 4000,
wait_ready: true,
autorestart: true,
watch: false,
max_memory_restart: "1G",
log_date_format: "YYYY-MM-DD HH:mm Z",
env_prod: {
APP_ENV: 'prod' // APP_ENV=prod
}
}],
};