You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.2KB

  1. module.exports = {
  2. "apps": [
  3. {
  4. "name" : "www",
  5. "autorestart" : true,
  6. "watch" : true,
  7. "cwd" : "/home/node/swarmlab-app",
  8. "script" : "nginx -g 'daemon off;'",
  9. "exec_interpreter" : "none",
  10. "log_type" : "json",
  11. "log_file" : "/home/node/logs/logfilenginx",
  12. "error_file" : "/home/node/logs/errorfilenginx",
  13. "out_file" : "/home/node/logs/outfilenginx",
  14. "log_date_format": "YYYY-MM-DD HH:mm Z",
  15. "merge_logs" : true,
  16. "exec_mode" : "fork_mode",
  17. "max_restarts": 10,
  18. "max_memory_restart": "500M",
  19. "restart_delay" : 1000
  20. },
  21. {
  22. "name" : "server",
  23. "autorestart" : true,
  24. "watch" : true,
  25. "cwd" : "/home/node/server",
  26. "script" : "llo/new.js",
  27. "run_as_user" : "node",
  28. "args" : "start",
  29. "pid_file" : "/home/node/pid.pid",
  30. "log_type" : "json",
  31. "log_file" : "/home/node/logs/logfile",
  32. "error_file" : "/home/node/logs/errorfile",
  33. "out_file" : "/home/node/logs/outfile",
  34. "log_date_format": "YYYY-MM-DD HH:mm Z",
  35. "merge_logs" : true,
  36. "exec_mode" : "fork",
  37. "max_restarts": 10,
  38. "max_memory_restart": "500M",
  39. "restart_delay": 1000
  40. },
  41. ]
  42. }