From 4b1336184bb83161c445cd2e88e037a54da4d6a3 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 14 Apr 2014 14:18:54 -0700 Subject: [PATCH] Add the website push script --- scripts/website_push.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/website_push.sh diff --git a/scripts/website_push.sh b/scripts/website_push.sh new file mode 100644 index 0000000000..fafcbd70c1 --- /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