Skip to content

Instantly share code, notes, and snippets.

@GusGA
Created April 9, 2017 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GusGA/83203a8388beecc1be48951f379bd2a4 to your computer and use it in GitHub Desktop.
Save GusGA/83203a8388beecc1be48951f379bd2a4 to your computer and use it in GitHub Desktop.
Heroku Deploy by Mark Bates
#!/bin/bash
set -ex
git checkout -b build
GOOS=linux buffalo build -z -o bin/heroku
git add .
git commit -a -m "binary commit"
git push heroku build:master --force
heroku run bin/heroku migrate
git checkout master
git branch -D build
rm -rf bin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment