heroku-deployment-badges
Usage
Create an img
with src https://heroku-badge.herokuapp.com/?app={app-name}
. E.g.,
Markdown:
[![Heroku](https://heroku-badge.herokuapp.com/?app=heroku-badge)]
If the heroku app has no index.html than use the root query parameter to specify the url to check if heroku response with http status 200.
Markdown:
[![Heroku](http://heroku-badge.herokuapp.com/?app=heroku-badge&root=projects.html)]
Failed Example
Markdown:
[![Heroku](http://heroku-badge.herokuapp.com/?app=angularjs-crypto&style=flat&svg=1&root=notfound.html)]
Support now flat badge design.
Markdown:
[![Heroku](http://heroku-badge.herokuapp.com/?app=angularjs-crypto&style=flat)]
Support now svg images.
Markdown:
[![Heroku](http://heroku-badge.herokuapp.com/?app=angularjs-crypto&style=flat&svg=1)]
Support use custom page
The query parameter root is used to specify a different url to perform the check get request. The following example will check if the the url 'https://angularjs-crypto.herokuapp.com/index.html' return response status code 200 or 401 and display the proper badge image for it.
Markdown:
[![Heroku](http://heroku-badge.herokuapp.com/?app=angularjs-crypto&style=flat&svg=1&root=index.html)]
Copyright
The badges are made by me but feel free to use and copy it of course you have to copy it into your heroku app.
License
heroku-deployment-badges is released under the MIT License.