-
Notifications
You must be signed in to change notification settings - Fork 483
Whenever tasks do not dependent :environment #267
Copy link
Copy link
Closed
Description
I use rvm and whenever, and setting rvm and rails_env in environment task.
task :environment do
invoke :'rvm:use[ruby-2.1.5@xxx]'
set :rails_env, 'production'
end
...
task :deploy => :environment do
...
invoke :'whenever:update
...
end
when I deploy, mina will output error log.
/home/wwwuser/.rvm/gems/ruby-2.1.5@global/gems/bundler-1.7.12/lib/bundler/rubygems_integration.rb:256:in `block in replace_gem': whenever is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
from /home/wwwuser/sales_man/releases/31/vendor/bundle/ruby/2.1.0/bin/whenever:22:in `<main>'
! ERROR: Deploy failed.
I see whenever tasks do not dependent :environment. when I overwite my local gem /lib/mina/whenever.rb code using task :update => :environment, it works.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels