From e18dbecfab9d49d717974b2a8e40f564a67b8d9f Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Wed, 2 Mar 2016 16:00:12 +0000 Subject: [PATCH] added pm2 ecosystem file --- ecosystem.json | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 ecosystem.json diff --git a/ecosystem.json b/ecosystem.json new file mode 100644 index 0000000..3c27caf --- /dev/null +++ b/ecosystem.json @@ -0,0 +1,33 @@ +{ + /** + * Application configuration section + * http://pm2.keymetrics.io/docs/usage/application-declaration/ + */ + apps: [ + // First application + { + "name": "Keeper", + "script": "keeper-server.js", + "cwd": "/var/www/keeper", + "watch": true, + "max_restarts": 64, + "merge_logs" : true, + "autorestart" : true, + "restart_delay" : 3500, + "max_memory_restart" : "300M", + env: { + COMMON_VARIABLE: "true" + }, + env_production: { + NODE_ENV: "production" + } + } + ], + /** + * Deployment section + * http://pm2.keymetrics.io/docs/usage/deployment/ + */ + deploy: { + + } +}