{
  "apps": [
    {
      "name": "Costa",
      "script": "build/src/server/index.js",
      "env_production": {
        "NODE_ENV": "production"
      }
    },
  ],

  "deploy": {
    "production": {
      "user": "pi",
      "host": "192.168.0.234",
      "ref": "origin/master",
      "repo": "git@github.com:rollacaster/costa.git",
      "path": "/var/www",
      "post-deploy" : "npm i; npm run build; pm2 startOrRestart ecosystem.json --env production"
    },
    "develop": {
      "user": "thomas",
      "host": "localhost",
      "ref": "origin/develop",
      "repo": "git@github.com:rollacaster/costa.git",
      "path": "~/temp",
      "post-deploy" : "npm i; npm run build; pm2 startOrRestart ecosystem.json --env production"
    }
  }
}

{
  "apps": [
    {
      "name": "Costa",
      "script": "build/src/server/index.js",
      "env_production": {
        "NODE_ENV": "production"
      }
    },
  ],

  "deploy": {
    "production": {
      "user": "pi",
      "host": "192.168.0.234",
      "ref": "origin/master",
      "repo": "git@github.com:rollacaster/costa.git",
      "path": "/var/www",
      "post-deploy" : "npm i; npm run build; pm2 startOrRestart ecosystem.json --env production"
    },
    "develop": {
      "user": "thomas",
      "host": "localhost",
      "ref": "origin/develop",
      "repo": "git@github.com:rollacaster/costa.git",
      "path": "/Users/thomas/temp",
      "post-deploy" : "npm i; npm run build; pm2 startOrRestart ecosystem.json --env production"
    }
  }
}

Use absolute path or deployment
Use absolute path or deployment
