Re:Webhooks Level Up
by jackcarter on Tuesday February 11, 2014 @04:43PM
(#7220681)
Can I use this to automatically push to (e.g.) Heroku upon pushing to Github?
[ Parent
| on HN ]
Re:Webhooks Level Up
by michaelmior on Tuesday February 11, 2014 @05:53PM
(#7221127)
You could, but you'd have to have some intermediate service to handle that process. One great choice is Travis CI[1] which is really a continuous integration service, but would let you do what you want. You can also just attach multiple URLs to a single git remote so you push to both GitHub and Heroku all the time.
However, I think running a test suite before deploying is a much safer option as it stops you from accidentally deploying something you haven't properly tested.
We have a preview API in place for these types of deployment tasks. Lots of folks, travis/etc, seem to have piggy backed on top of successful builds too.
Seeing that in the list of events to listen to was probably the thing I was most excited to see, I'm looking forward to seeing where that API goes!
CircleCI is another option: https://circleci.com