Skip to content

Instantly share code, notes, and snippets.

@mewm
Created July 24, 2017 13:51
Show Gist options
  • Save mewm/8fb85627ce963d63ed27241893c80b7c to your computer and use it in GitHub Desktop.
Save mewm/8fb85627ce963d63ed27241893c80b7c to your computer and use it in GitHub Desktop.
#!/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