ecosystem.json
{
"apps": [{
"name" : "Starveller",
"script": "bin/prod.js",
"env_production": {
NODE_ENV: "production"
}
}],
"deploy": {
"production": {
"user" : "pm2",
"host" : "sigsev.io",
"ref" : "origin/master",
"repo" : "git@github.com:SIGSEV/Starveller.git",
"path" : "/var/www/starveller",
"post-deploy": "npm prune && npm i && npm run build && pm2 startOrRestart ecosystem.json --env production"
}
}
}