154 lines
4.9 KiB
JSON
154 lines
4.9 KiB
JSON
{
|
|
/**
|
|
* Application configuration section
|
|
* http://pm2.keymetrics.io/docs/usage/application-declaration/
|
|
*/
|
|
apps: [
|
|
// First application
|
|
{
|
|
"name": "SilvrPipes",
|
|
"script": "pipes-server.js",
|
|
"cwd": "/home/martind2000/dev/Rinser",
|
|
"watch": true,
|
|
"ignore_watch" : ["node_modules"],
|
|
"merge_logs" : true,
|
|
"autorestart" : true,
|
|
"restart_delay" : 3500,
|
|
"max_memory_restart" : "300M",
|
|
env_production: {
|
|
NODE_ENV: "production"
|
|
}
|
|
},
|
|
{
|
|
"name": "Silvrtree",
|
|
"script": "web-server.js",
|
|
"cwd": "/home/martind2000/dev/silvrgit",
|
|
"watch": true,
|
|
"ignore_watch" : ["node_modules"],
|
|
"merge_logs" : true,
|
|
"autorestart" : true,
|
|
"restart_delay" : 3500,
|
|
"max_memory_restart" : "300M",
|
|
env_production: {
|
|
NODE_ENV: "production"
|
|
}
|
|
},
|
|
|
|
,
|
|
{
|
|
"name": "Lot",
|
|
"script": "lot.js",
|
|
"cwd": "/home/martind2000/dev/lot",
|
|
"watch": true,
|
|
"ignore_watch" : ["node_modules"],
|
|
"merge_logs" : true,
|
|
"autorestart" : true,
|
|
"restart_delay" : 3500,
|
|
"max_memory_restart" : "300M",
|
|
env_production: {
|
|
NODE_ENV: "production"
|
|
}
|
|
},
|
|
|
|
{
|
|
"name": "NCI",
|
|
"script": "web-server.js",
|
|
"cwd": "/home/martind2000/dev/nci-quick-setup/node_modules/.bin/nci",
|
|
"watch": true,
|
|
"ignore_watch" : ["node_modules"],
|
|
"merge_logs" : true,
|
|
"autorestart" : true,
|
|
"restart_delay" : 3500,
|
|
"max_memory_restart" : "300M",
|
|
env_production: {
|
|
NODE_ENV: "production"
|
|
}
|
|
},
|
|
{
|
|
"name": "Keeper",
|
|
"script": "keeper-server.js",
|
|
"cwd": "/home/martind2000/dev/keeper",
|
|
"watch": true,
|
|
"ignore_watch" : ["node_modules"],
|
|
"merge_logs" : true,
|
|
"autorestart" : true,
|
|
"restart_delay" : 3500,
|
|
"max_memory_restart" : "300M",
|
|
env_production: {
|
|
NODE_ENV: "production"
|
|
}
|
|
},
|
|
{
|
|
"name": "SilvrAPI",
|
|
"script": "newapp.js",
|
|
"cwd": "/home/martind2000/dev/silvrapi",
|
|
"watch": true,
|
|
"ignore_watch" : ["node_modules"],
|
|
"merge_logs" : true,
|
|
"autorestart" : true,
|
|
"restart_delay" : 3500,
|
|
"max_memory_restart" : "300M",
|
|
env_production: {
|
|
NODE_ENV: "production"
|
|
}
|
|
},
|
|
{
|
|
"name": "Logger",
|
|
"script": "logger-server.js",
|
|
"cwd": "/home/martind2000/dev/logger",
|
|
"watch": true,
|
|
"ignore_watch" : ["node_modules"],
|
|
"merge_logs" : true,
|
|
"autorestart" : true,
|
|
"restart_delay" : 3500,
|
|
"max_memory_restart" : "300M",
|
|
env_production: {
|
|
NODE_ENV: "production"
|
|
}
|
|
},
|
|
{
|
|
"name": "Recipe",
|
|
"script": "recipe-server.js",
|
|
"cwd": "/var/www/recipes",
|
|
"watch": true,
|
|
"ignore_watch" : ["node_modules"],
|
|
"merge_logs" : true,
|
|
"autorestart" : true,
|
|
"restart_delay" : 3500,
|
|
"max_memory_restart" : "300M",
|
|
env: {
|
|
COMMON_VARIABLE: "true"
|
|
},
|
|
env_production: {
|
|
NODE_ENV: "production"
|
|
}
|
|
},
|
|
{
|
|
"name": "nURL",
|
|
"script": "app.js",
|
|
"cwd": "/var/www/nurl",
|
|
"watch": true,
|
|
"ignore_watch": [
|
|
"node_modules"
|
|
],
|
|
"merge_logs": true,
|
|
"autorestart": true,
|
|
"restart_delay": 3500,
|
|
"max_memory_restart": "300M",
|
|
env: {
|
|
NODE_ENV: "prod"
|
|
},
|
|
env_production: {
|
|
NODE_ENV: "prod"
|
|
}
|
|
}
|
|
],
|
|
/**
|
|
* Deployment section
|
|
* http://pm2.keymetrics.io/docs/usage/deployment/
|
|
*/
|
|
deploy: {
|
|
|
|
}
|
|
}
|