Closed kwerle closed 10 years ago
@kwerle there is a way to do this but it is not exposed yet. Let me take a crack at that tomorrow. Hopefully I can come up with something that works out for you.
@kwerle This has been released in version 2.1. Let me know how it works out for you. There is an example in the README.
Just in time to test on staging before monday's deployment. Assume it works unless you hear from me.
Thanks!
Works great, but it might be worth a warning: it will only work on the +1th commit.
* Add a task
* Modify deployment to use the task
* Push
** Task fails - not found - deployment succeeds
* Push again
** Task works because it was already there.
I happened to call my task from before_warm_instance. Maybe that matters, maybe not.
Could be a timing issue. Hard to say without more detail. Glad it sorta works for you though.
Turns out that I missed an API change from match_tag_to to match_tag, and maybe I was not actually deploying the new code, after all. Let's just assume that it always works, you rock, and I should pay more attention :-)
Thanks, Kurt
I would like to run a rake task on heroku. In my case, I want to clear the rails cache. The rake task is trivial - but paratrooper does not seem to have an easy (documented) way to run it.