/heroku-badge

Simple heroku badge that serves an success or failed image depends on the heroku response.

Primary LanguageHTML

heroku-deployment-badges

Build Status Dependencies Heroku

Usage

Create an img with src https://heroku-badge.herokuapp.com/?app={app-name}. E.g.,

HTML:

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.

HTML:

Markdown:

[![Heroku](http://heroku-badge.herokuapp.com/?app=heroku-badge&root=projects.html)]

Failed Example

HTML:

Markdown:

[![Heroku](http://heroku-badge.herokuapp.com/?app=angularjs-crypto&style=flat&svg=1&root=notfound.html)]    

Support now flat badge design.

HTML:

Markdown:

[![Heroku](http://heroku-badge.herokuapp.com/?app=angularjs-crypto&style=flat)]

Support now svg images.

HTML:

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.

HTML:

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.