Skip to content

Instantly share code, notes, and snippets.

@kamerk22
Created July 26, 2017 18:55
Show Gist options
  • Save kamerk22/f191792fa3ca93b15c1edf65d997e550 to your computer and use it in GitHub Desktop.
Save kamerk22/f191792fa3ca93b15c1edf65d997e550 to your computer and use it in GitHub Desktop.
pm2 deployment
"deploy": {
"production": {
"user": "server-user",
"host": "server-ip",
"repo": "git@github.com/vuejspm2.git",
"ref": "origin/master",
"path": "/var/www/production",
"post-deploy": "npm install && npm run build && pm2 startOrRestart ecosystem.json --env production"
},
"development": {
"user": "server-user",
"host": "server-ip",
"repo": "git@github.com/vuejspm2.git",
"ref": "origin/master",
"path": "/var/www/development",
"post-deploy": "npm install && pm2 startOrRestart ecosystem.json --env development"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment