{
  "apps" : [
    {
      "name"      : "server",
      "script"    : "server/server.js",
      "env": {
        "COMMON_VARIABLE": "true"
      },
      "env_production" : {
        "NODE_ENV": "production"
      }
    }
  ],
  "deploy" : {
    "production" : {
      "user" : "robins",
      "host" : "162.243.243.185",
      "ref"  : "origin/master",
      "repo" : "GIT_HUB_REPOSITORY",
      "path" : "SERVER_PROJECT_PATH",
      "post-deploy" : "git submodule update --init --recursive; git submodule init; git submodule update; npm install;  sudo apt-get install imageMagick; pm2 startOrRestart ecosystem.json --env production"
    }
  }
}
