Full ecosystem for PM2

This commit is contained in:
Martin Donnelly 2016-07-04 11:24:15 +01:00
parent 37236f8a9c
commit f920305656

View File

@ -1,7 +1,7 @@
{ {
apps: [ "apps": [
// First application // First application
{ {
"name": "SilvrPipes", "name": "SilvrPipes",
@ -15,10 +15,10 @@
"autorestart": true, "autorestart": true,
"restart_delay": 3500, "restart_delay": 3500,
"max_memory_restart": "300M", "max_memory_restart": "300M",
env_production: { "env_production": {
NODE_ENV: "production" "NODE_ENV": "production"
} }
}/*, },
{ {
"name": "Silvrtree", "name": "Silvrtree",
"script": "web-server.js", "script": "web-server.js",
@ -31,11 +31,11 @@
"autorestart": true, "autorestart": true,
"restart_delay": 3500, "restart_delay": 3500,
"max_memory_restart": "300M", "max_memory_restart": "300M",
env_production: { "env_production": {
NODE_ENV: "production" "NODE_ENV": "production"
} }
}, },
,
{ {
"name": "Lot", "name": "Lot",
"script": "lot.js", "script": "lot.js",
@ -48,8 +48,8 @@
"autorestart": true, "autorestart": true,
"restart_delay": 3500, "restart_delay": 3500,
"max_memory_restart": "300M", "max_memory_restart": "300M",
env_production: { "env_production": {
NODE_ENV: "production" "NODE_ENV": "production"
} }
}, },
{ {
@ -64,8 +64,8 @@
"autorestart": true, "autorestart": true,
"restart_delay": 3500, "restart_delay": 3500,
"max_memory_restart": "300M", "max_memory_restart": "300M",
env_production: { "env_production": {
NODE_ENV: "production" "NODE_ENV": "production"
} }
}, },
{ {
@ -80,8 +80,8 @@
"autorestart": true, "autorestart": true,
"restart_delay": 3500, "restart_delay": 3500,
"max_memory_restart": "300M", "max_memory_restart": "300M",
env_production: { "env_production": {
NODE_ENV: "production" "NODE_ENV": "production"
} }
}, },
{ {
@ -96,8 +96,8 @@
"autorestart": true, "autorestart": true,
"restart_delay": 3500, "restart_delay": 3500,
"max_memory_restart": "300M", "max_memory_restart": "300M",
env_production: { "env_production": {
NODE_ENV: "production" "NODE_ENV": "production"
} }
}, },
{ {
@ -112,8 +112,8 @@
"autorestart": true, "autorestart": true,
"restart_delay": 3500, "restart_delay": 3500,
"max_memory_restart": "300M", "max_memory_restart": "300M",
env_production: { "env_production": {
NODE_ENV: "production" "NODE_ENV": "production"
} }
}, },
{ {
@ -128,12 +128,9 @@
"autorestart": true, "autorestart": true,
"restart_delay": 3500, "restart_delay": 3500,
"max_memory_restart": "300M", "max_memory_restart": "300M",
env: { "env_production": {
COMMON_VARIABLE: "true" "NODE_ENV": "production"
},
env_production: {
NODE_ENV: "production"
} }
}*/ }
] ]
} }