Skip to content

Instantly share code, notes, and snippets.

@jaygooby
Last active December 26, 2015 05:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaygooby/7101841 to your computer and use it in GitHub Desktop.
Save jaygooby/7101841 to your computer and use it in GitHub Desktop.
Deploy UX Brighton github pages
#!/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