{
  "apps" : [{
    "name"        : "api",
    "script"      : "app.js",
    "args"        : [],
    "log_date_format"  : "YYYY-MM-DD HH:mm Z",
    "ignore_watch" : [".vagrant", "node_modules", "test", "uploads", "app.log", ".gitignore", "README.md", "Vagrantfile", "app/emails/general"],
    "watch"       : true,
    "env": {
        "NODE_ENV": "development"
    }
  }]
}
{
  "apps" : [{
    "name"        : "api",
    "script"      : "app.js",
    "args"        : [],
    "log_date_format"  : "YYYY-MM-DD HH:mm Z",
    "ignore_watch" : [".vagrant", "node_modules", "test", "uploads", "app.log", ".gitignore", "README.md", "Vagrantfile", "app/emails/general"],
    "watch"       : true
  }]
}
Remove environment vars from PM2
Remove environment vars from PM2
