-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support whenever environment_variable #13
Comments
Fix mina-deploy#13 Signed-off-by: Laurent Vallar <[email protected]>
Is there a new version of mina-whenever gem? It's still reporting the problem with environment and invoke :'whenever:update' is throwing me command not found. |
@Val I have tried to use the suggested workaround above, but get the error:
I am assuming this is something I have done incorrectly in my project causing an issue in the line Are you able to suggest how I may be able to resolve this please? I have also posted some additional information on StackOverflow here Thanks for your time |
@texasecb : did your read https://github.com/javan/whenever#define-your-own-job-types ? Did you set Note default value of |
@Val I did read the articles previously, but to be honest I wasn't sure whether I should/shouldn't be doing anything in relation to this. I don't know that it should be anything other than Thank you for replying so quickly. I am relatively new to Rails, so sorry if I am missing the point / misinterpreting |
Out of interest, I added the line
I look forward to discovering what I am doing wrong |
I can run command: mina whenever:update from terminal and it works, but invoke whenever update in deploy.rb still throwing command not found. |
@AnubixXx did you try task :deploy do
on :launch do
invoke :'whenever:update'
end
end |
The task :deploy do
on :launch => :remote_environment do
invoke :'whenever:update'
end
end I am no expert, but I am assuming that |
@SimonThordal I tried your approach and for some reason mina then skipped the contents of the launch block entirely. This PR seemed to fix the error using the latest version of mina: #11 |
https://github.com/raofeng/mina-whenever |
:environment_variable
make use of different:environment
variable name, see Define your own job types for wheneverThe text was updated successfully, but these errors were encountered: