Created
April 9, 2017 17:29
-
-
Save GusGA/83203a8388beecc1be48951f379bd2a4 to your computer and use it in GitHub Desktop.
Heroku Deploy by Mark Bates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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