diff --git a/scripts/website_push.sh b/scripts/website_push.sh new file mode 100644 index 000000000..fafcbd70c --- /dev/null +++ b/scripts/website_push.sh @@ -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