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.
Written by Raine
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Heroku
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#