Created
June 1, 2024 04:35
-
-
Save chrisvasqm/fed03191edb759024405bcf13dcd0196 to your computer and use it in GitHub Desktop.
Sample deployment script to use with a Virtual Machine setup (Linode, Digital Ocean Droplets, etc)
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
echo "Switching to master branch" | |
git checkout master | |
echo "Building app..." | |
pnpm build | |
echo "Deploying files to server..." | |
scp -r dist/* app@<DOMAIN_OR_IP>:/var/www/<DOMAIN_OR_IP>/ | |
echo "Deployment done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment