ecosystem.config.js 710 B

1234567891011121314151617181920212223242526272829303132
  1. module.exports = {
  2. apps: [
  3. {
  4. name: "gami-op",
  5. script: "./node_modules/.bin/next",
  6. args: "start -H 0.0.0.0",
  7. cwd: "./",
  8. instances: "max",
  9. exec_mode: "cluster",
  10. watch: false,
  11. max_memory_restart: "500M",
  12. env: {
  13. NODE_ENV: "production",
  14. PORT: 3002,
  15. },
  16. env_development: {
  17. NODE_ENV: "development",
  18. PORT: 3002,
  19. },
  20. env_production: {
  21. NODE_ENV: "production",
  22. PORT: 3002,
  23. },
  24. error_file: "./logs/err.log",
  25. out_file: "./logs/out.log",
  26. log_date_format: "YYYY-MM-DD HH:mm:ss Z",
  27. merge_logs: true,
  28. autorestart: true,
  29. restart_delay: 4000,
  30. },
  31. ],
  32. };