Skip to content

Instantly share code, notes, and snippets.

@tgrrtt
Created November 11, 2014 00:44
Show Gist options
  • Save tgrrtt/ce6c68fc8decf0978dda to your computer and use it in GitHub Desktop.
Save tgrrtt/ce6c68fc8decf0978dda to your computer and use it in GitHub Desktop.
Deploy script
#!/bin/bash
wget $file
sudo stop $upstartName
# if dist exists (or public or whatever the tar extracts to
if [ -e dist ]
then
sudo rm -rf dist
fi
# extact the tar
tar -xzvf $tarname
# start the upstart process back up
sudo start $projectname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment