diff --git a/ecosystem.json b/ecosystem.json new file mode 100644 index 0000000..bf1f16b --- /dev/null +++ b/ecosystem.json @@ -0,0 +1,33 @@ +{ + /** + * Application configuration section + * http://pm2.keymetrics.io/docs/usage/application-declaration/ + */ + apps: [ + // First application + { + "name": "Jubilee", + "script": "server.js", + "cwd": "/var/www/keeper", + "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" + } + } + ], + /** + * Deployment section + * http://pm2.keymetrics.io/docs/usage/deployment/ + */ + deploy: { + + } +}