Friday, 15 April 2011

rake - Whenever gem in rails error :'to_specs': Could not find bundler (>= 0) amongst -



rake - Whenever gem in rails error :'to_specs': Could not find bundler (>= 0) amongst -

i using whenever gem in application. , have scheduled rake task every 5 minutes. rake task not running every 5 minutes. when saw log gave me error

`to_specs': not find bundler (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.5.4, minitest-2.5.1, rake-0.9.2.2, rdoc-3.9.4] (gem::loaderror)

this content in schedule.rb

every 3.minutes rake "mytask name" end

i had same issue solved putting

env :path, '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin'

instead of

env :path, env['path']

on top of config/schedule.rb

rake task scheduling whenever

No comments:

Post a Comment