Add the website push script

This commit is contained in:
Mitchell Hashimoto 2014-04-14 14:18:54 -07:00
parent e4eca86de1
commit a709a50f88
1 changed files with 12 additions and 0 deletions

12
scripts/website_push.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
# Get the parent directory of where this script is.
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
# Change into that directory
cd $DIR
# Push the subtree (force)
git push heroku `git subtree split --prefix website master`:master --force