ruby on rails - Error in bundle when executing cron.job with Whenever -


i have following schedule.rb

every 1.minute   runner "user.persist_things" end 

but looking @ log/cron.log file, output following:

/system/library/frameworks/ruby.framework/versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file load -- bundler/setup (loaderror)     /system/library/frameworks/ruby.framework/versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'     /users/felipeclopes/projects/example/config/boot.rb:6     script/rails:5:in `require'     script/rails:5 

i using rvm ruby, current version is:

$ ruby --version ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin10.8.0] 

so seems cron job loading incorrect ruby version, don't know how fix this. can me figuring out?

there known issue whenever , rvm integration. suggest following instructions on whenever gem page: rvm integration

see also: whenever issues related rvm


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -