Skip to content
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

Whenever tasks use old release in readme example #304

Closed
biomancer opened this issue Apr 14, 2015 · 2 comments
Closed

Whenever tasks use old release in readme example #304

biomancer opened this issue Apr 14, 2015 · 2 comments

Comments

@biomancer
Copy link

Using invoke :'whenever:update' in deploy block causes this task to run from old release and to use old schedule.rb. It uses new build only after current symlink is updated, for example in to :launch block.

Probably either cd #{deploy_to!}/#{current_path!} ; should be removed from these tasks or, if there is some reason for this cd, readme example should be updated to something like that:

 require 'mina/whenever'

 task :deploy => :environment do
   deploy do
     ...
     to :launch do 
       invoke :'whenever:update'
       ...
     end         
   end
  end

I may create pull request if I understood everything correctly.

@bastengao
Copy link

I also have this issue.

@d4be4st
Copy link
Member

d4be4st commented Jul 5, 2015

invoke :'whenever:update' is supposed to be run in :launch block
will update readme to reflect that

@d4be4st d4be4st closed this as completed Jul 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants