Created
September 17, 2019 15:12
-
-
Save uurtech/b34689ad03457783147cccde76d8c7db to your computer and use it in GitHub Desktop.
Deploy Bash
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
#/bin/bash | |
ssh user@IP "cd /var/www; git pull https://GIT_REPO_WITH_TOKEN; cd /var/www; npm install ; npm run build ;pm2 delete APP_NAME ; pm2 start index --name APP_NAME" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment