https://github.com/z0mbix/deploygif
Application code for the deploygif service
https://github.com/z0mbix/deploygif
Last synced: over 1 year ago
JSON representation
Application code for the deploygif service
- Host: GitHub
- URL: https://github.com/z0mbix/deploygif
- Owner: z0mbix
- License: mit
- Created: 2016-04-27T16:27:15.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-25T13:22:09.000Z (about 10 years ago)
- Last Synced: 2025-01-29T15:50:46.460Z (over 1 year ago)
- Language: CSS
- Homepage: http://deploygif.com
- Size: 62.5 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Get gifs when you deploy
========================
This is the application code for [deploygif.com](http://deploygif.com).
## Infrastructure
The code that manages the Infrastructure can be found in a separate GitHub repository ([z0mbix/deploygif-infrastructure](https://github.com/z0mbix/deploygif-infrastructure))
## Description
Fancy putting silly animated gifs in your HipChat/Slack rooms after a deploy, even if they fail?
When calling this service it will return a link to a random animated gif
relevant to the requested path (/success or /fail)
## Usage
You've done a successful deploy, celebrate by hitting:
$ curl http://deploygif.com/success
http://replygif.net/i/1072.gif
Your deploy didn't really go to plan, commiserate with:
$ curl http://deploygif.com/fail
http://replygif.net/i/902.gif
If you want a json response for some reason you can either add *json=1* to the query string:
$ curl http://deploygif.io/success?json=1
{"url":"http:\/\/cdn.thelisticles.net\/wp-content\/uploads\/2014\/11\/152.gif"}
or, send the *'application/json'* Accept header:
$ curl http://deploygif.io/success -H 'Accept: application/json'
{"url":"http:\/\/replygif.net\/i\/96.gif"}
or, just use the .json extension:
$ curl http://deploygif.io/success.json
{"url":"http:\/\/replygif.net\/i\/96.gif"}
To post these directly in to Slack or HipChat, you can use:
$ curl http://deploygif.io/success.gif
$ curl http://deploygif.io/fail.gif
## Migrations
To run redis database migrations, you can add a new one in the *'migrations'* directory and run:
$ make migrate
## License
MIT