Last Updated: February 25, 2016
·
422
· metaraine

Make an HTTP request to the current Heroku app and ouput the status code

heroku info -s | grep web_url | cut -d= -f2 | xargs -I{} curl {} -w '%{http_code}' -so /dev/null

(You have to be inside the directory of a heroku app for this to work.)

Alias this and then run it after git push heroku master for a simple check that you're getting a 200.

-metaraine