Skip to content

Instantly share code, notes, and snippets.

@kylehg
Last active August 8, 2017 16:02
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 kylehg/f313ff4a87295ae6d0aa04344caddae1 to your computer and use it in GitHub Desktop.
Save kylehg/f313ff4a87295ae6d0aa04344caddae1 to your computer and use it in GitHub Desktop.
Heroku Makefile
.PHONY: runprod
runprod:
heroku local web
.PHONY: deploy
deploy:
git checkout master
git pull
git push heroku master
git tag "$$(heroku releases -n 1 | awk '{print $$1}' | sed -n 2p)"
git push --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment