update ecosystem.config.js

This commit is contained in:
AmirHossein Mahmoodi
2023-10-31 09:35:29 +03:30
parent bf032a2ee6
commit 523d0f310a
2 changed files with 20 additions and 1 deletions

1
.gitignore vendored
View File

@@ -31,3 +31,4 @@ cypress/screenshots
.env
.idea
package-lock.json
ecosystem.config.js

View File

@@ -0,0 +1,18 @@
module.exports = {
apps: [{
name: "crm_app",
script: 'node_modules/next/dist/bin/next', // cluster mode run with node only, not npm
args: 'start -p 3003',
exec_mode: "cluster", // default fork
instances: "10",
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
}
}],
};