Skip to content

Commit

Permalink
Explicitly set BUNDLE_GEMFILE for each worker
Browse files Browse the repository at this point in the history
  • Loading branch information
take-five committed Aug 29, 2013
1 parent e4e8432 commit da53254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/integration/god.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ God.terminate_timeout = <%= terminate_timeout.to_i %>
w.name = 'resque-<%= worker.queue %>-<%= i %>'
w.group = 'resque'
w.interval = 30.seconds
w.env = <%= Resque.config.env.merge(worker.env).merge(:RAILS_ENV => ::Rails.env).stringify_keys! %>
w.env = <%= Resque.config.env.merge(worker.env).merge(:RAILS_ENV => ::Rails.env, :BUNDLE_GEMFILE => "#{root}/Gemfile").stringify_keys! %>
w.start = "#{bundle} exec rake -f #{rails_root}/Rakefile resque:work"
w.log = "#{rails_root}/<%= log_file %>"
w.stop_signal = 'QUIT'
Expand Down

0 comments on commit da53254

Please sign in to comment.