Closed kamui closed 8 years ago
@kamui I also use this buildpack and have experienced the same issue. I think this is due to how the arguments are passes to rake in the compile script. What I ended up doing is making another rake task that calls all the rake tasks I want to run using some help from Stack Overflow. I called mine deploy:production
and it runs several tasks related to a production deployment. This way you can set one task in the DEPLOY_TASKS
envvar and it will work as intended.
I know it doesn't fix the actual issue but this worked pretty good for me.
Thanks @devosnw. I've thought about doing that too and it would probably work. Somehow I got this to work as is and I'm not sure how. I kept trying it and at some point it started working, but it's good to know someone saw this issue before because I was definitely stuck with this error for the better part of a day.
I created a pull request to fix this issue. https://github.com/gunpowderlabs/buildpack-ruby-rake-deploy-tasks/pull/6
Closed by @davesloan pull request(#6).
I haven't had luck running more than 1 rake task.
Given:
On deploy, when it runs the rake task I get the equivalent of:
Either of these work: