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"