How to tell bundler where the Gemfile is?

Viewed 13618

I'm trying to run a Ruby script from cron.

The script uses Bundler to manage gem dependencies. Since cron does not run in $PWD I get a 'Could not locate Gemfile' error from Bundler everytime, which makes sense since Gemfile is not in the currrent path when running from cron.

Is there a way to tell Bundler to use a Gemfile not in the current path?

2 Answers
Related