github.com/acm1/terraform@v0.6.2-0.20150729164239-1f314444f45c/scripts/website_push.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  # Get the parent directory of where this script is.
     4  SOURCE="${BASH_SOURCE[0]}"
     5  while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
     6  DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
     7  
     8  # Change into that directory
     9  cd $DIR
    10  
    11  # Push the subtree (force)
    12  git push heroku `git subtree split --prefix website HEAD`:master --force