{ /** * Application configuration section * http://pm2.keymetrics.io/docs/usage/application-declaration/ */ apps: [ // First application { "name": "Logger", "script": "logger-server.js", "cwd": "/var/www/logger", "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: { } }