Last active
December 26, 2015 05:39
-
-
Save jaygooby/7101841 to your computer and use it in GitHub Desktop.
Deploy UX Brighton github pages
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/bash | |
# | |
# Danny, you'll need to change the | |
# path to the place where you have saved the | |
# 2013.uxbrighton.org.uk folder | |
# e.g. | |
# "/Users/danny/uxbri/2013.uxbrighton.org.uk" | |
# then save this file to e.g. /usr/local/bin/deploy-uxbri | |
# make it executable, and then you should be able to make a | |
# shortcut to that, that you can double click. | |
# | |
# I'm making the assumption that you have the old config file in | |
# 2013.uxbrighton.org.uk/.git seeing as the whole folder was in | |
# Dropbox. The config file is needed so that the 'dreamhost' | |
# call makes sense to git | |
PATH_TO_UXBRI="/Users/jay/Work/UX Brighton/2013.uxbrighton.org.uk" | |
cd $PATH_TO_UXBRI; git push dreamhost gh-pages | |
ssh uxbri@uxbrighton.org.uk "cd ~/2013.uxbrighton.org.uk; git reset --hard HEAD" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment