Created
November 11, 2014 00:44
-
-
Save tgrrtt/ce6c68fc8decf0978dda to your computer and use it in GitHub Desktop.
Deploy script
This file contains hidden or 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 | |
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