pm2 config file

Creator
Creator
Seonglae Cho
Created
Created
2020 Jun 15 7:11
Editor
Edited
Edited
2025 Mar 23 20:50
Refs
Refs

JS

{ "apps": [{ "name": "mms-svr", "script": "./node_modules/nuxt/bin/nuxt.js", "merge_logs": true, "log_date_format" :"YYYY-MM-DD HH:mm", "max_memory_restart": "4000M", "env": { "HOST": "0.0.0.0", "PORT": 3000, "NODE_ENV": "production" } }, { "name": "mms-svr-rmt", "script": "./node_modules/nuxt/bin/nuxt.js", "merge_logs": true, "log_date_format" :"YYYY-MM-DD HH:mm", "max_memory_restart": "4000M", "env": { "HOST": "0.0.0.0", "PORT": 3333, "NODE_ENV": "production" } }] }

Python

{ "apps": [ { "name": "llama_sae", "script": "main_llama.py", "wait_ready": false, "autorestart": false, "max_restarts": 5, "interpreter": "/bin/python" } ] }

Binary

pm2 start "command"
 
 
 
 
 

Recommendations