Skip to content

Instantly share code, notes, and snippets.

@chrisvasqm
Created June 1, 2024 04:35
Show Gist options
  • Save chrisvasqm/fed03191edb759024405bcf13dcd0196 to your computer and use it in GitHub Desktop.
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)
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