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
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/47788/e6b625008c816ab3d8d742cc3eddbb00.jpeg)
dommmel
77.52K
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/39096/ca3dc3f93730afb41d6753d8bf010a38.jpeg)
petenicholls
63.57K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#