Created
July 26, 2017 18:55
-
-
Save kamerk22/f191792fa3ca93b15c1edf65d997e550 to your computer and use it in GitHub Desktop.
pm2 deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"deploy": { | |
"production": { | |
"user": "server-user", | |
"host": "server-ip", | |
"repo": "[email protected]/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": "[email protected]/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