Skip to content

Instantly share code, notes, and snippets.

Last active Mar 28, 2016
What would you like to do?
chart tool heroku deployment
CURRHASH=`git rev-parse --short HEAD`
CURRBRANCH=`git rev-parse --abbrev-ref HEAD`
git commit -am "Deploying ${CURRHASH} to Heroku"
git checkout -b "deploy-${CURRHASH}"
gulp lib-build
git add .
git commit -m "Updating buildpacks, removing gitignore"
git filter-branch -f --prune-empty --subdirectory-filter meteor "deploy-${CURRHASH}"
heroku addons:create mongolab:sandbox
heroku labs:enable http-session-affinity
heroku config:add ROOT_URL=
heroku buildpacks:set ''
echo -n "" > .buildpacks
echo '' >> .buildpacks
echo '' >> .buildpacks
git add .
git commit -m "Deploying ${CURRHASH} to Heroku"
git push heroku "deploy-${CURRHASH}":master --force
git checkout ${CURRBRANCH}
git branch -D "deploy-${CURRHASH}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment