Bundle not found

5,063 views
Skip to first unread message

Justin Louie

unread,
Nov 29, 2011, 11:54:44 AM11/29/11
to Whenever Gem
Hi guys,

I think this is more of a setup problem then a whenever problem, but
I'll ask it anyway. The crontab runs this command:

/bin/bash -l -c 'cd /data/my-program/releases/20111129023738 &&
RAILS_ENV=production bundle exec rake master:update:all --silent >>
log/cron.log 2>&1'

When I run it myself, it works great. When cron runs:

/bin/bash: bundle: command not found

My setup is Ubuntu 10.04, Ruby 1.9.2, Rails 3.1.1. Ruby is compiled
and installed (so no RVM).

Any idea why cron can't find bundle?

Thanks,
Justin

Javan Makhmali

unread,
Nov 29, 2011, 11:57:50 AM11/29/11
to whenev...@googlegroups.com
Sounds like a $PATH issue. Try adding `env :PATH, ENV['PATH']` to the top of your schedule.rb file.

> --
> You received this message because you are subscribed to the Google
> Groups "Whenever Gem" group and because you're awesome.
> To post to this group, send email to whenev...@googlegroups.com
> To unsubscribe from this group, send email to
> whenever-gem...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/whenever-gem?hl=en

Reply all
Reply to author
Forward
0 new messages