You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I use rvm and whenever, and setting rvm and rails_env in
environment
task.when I deploy, mina will output error log.
I see whenever tasks do not dependent :environment. when I overwite my local gem
/lib/mina/whenever.rb
code usingtask :update => :environment
, it works.The text was updated successfully, but these errors were encountered: