4 ms·
If I could fork your code and get it working with environment variables, would you be interested in pulling that in? (Not sure if you made a deliberate decision
by freerobby 16y ago
If I could fork your code and get it working with environment variables, would you be interested in pulling that in? (Not sure if you made a deliberate decision to avoid that).
MiddleManagement works great for my needs, but if these libraries serve the same use case(s), I'd rather converge towards one library than have things spread out.
One other thing you may want to add is a retry loop for the heroku API calls. Every now and then, the heroku gem will throw a RestClient::ServiceUnavailable: 503 Service Unavailable exception. In the worst case, I'm not sure if this is best handled in the gem or at the application layer; however it's definitely worth retrying a couple times if you can avoid the blowup completely. I got some feedback from the Boston.rb group on handling this if you're interested: http://groups.google.com/group/boston-rubygroup/browse_thread/thread/ede9fa007735971/9d586498680f958f?lnk=gst&q=robby%40freerobby.com#9d586498680f958f http://groups.google.com/group/boston-rubygroup/browse_threa...
- meskyanichi 16y agoThanks for the heads up. Seems like a good idea to catch the 503 errors. Also, for now I'll leave all the configuration defined in pure Ruby. Maybe eventually I'll consider using ENV var's to handle that. Thanks for your feedback!