On 2012-03-28 09:55:42, Priyanka P. wrote:
Unable to invoke the custom rake task through cron under bundler.
Same task invoke without bundler. Anyone please suggest solution?
Here is the cron:
*/1 * * * * cd /home/rails_app && /usr/bin/bundle exec rake say_hi >>
What did you observe? Perhaps add a 2>&1 to the end to get both
stdout and stderr instead of out just stdout into
If you are using rvm you may need to call set it up first. Here
is what we do in some of our crontabs with a system wide install
30 10 * * * . /opt/rvm/scripts/rvm && (cd …; bundle exec “some_task”)
Life Integrity, LLC