Created
July 24, 2017 13:51
-
-
Save mewm/8fb85627ce963d63ed27241893c80b7c to your computer and use it in GitHub Desktop.
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/sh | |
echo ' _____ _ _ _ ____ ____ ' | |
echo '|_ _|_ _| |_| |_ ___ ___ __| | ___ | _ \ _____ __ _ \ ___ ___ ' | |
echo ' | |/ _` | __| __/ _ \ / _ \ / _` |/ _ \ | | | |/ _ \ \ / / | | |/ _ \ / __|' | |
echo ' | | (_| | |_| |_ (_) | (_) | (_| | (_) | | |_| | __/\ V /| |_| | (_) | (__ ' | |
echo ' |_|\__,_|\__|\__\___/ \___/ \__,_|\___/ |____/ \___| \_/ |____/ \___/ \___|' | |
echo "** Pushing to GitHub **" | |
git fetch | |
cd ~/devdoc.git && git push origin master | |
echo "** Pushed to github **" | |
echo "** Deploying to live **" | |
git --work-tree=/var/www/devdoc --git-dir=/home/ec2-user/devdoc.git checkout -f | |
# Other steps here | |
# ... | |
# ... | |
echo "** Deployed to live **" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment