Permalink
Browse files

Fix starting DJ

'bundle exec' is run under a login shell so that rvm is setup properly.
Otherwise bundle will look in the system gems and thats not where
'bundle install' was run.
  • Loading branch information...
1 parent 8cb20fc commit a0e2de39f2fe02c00cf0ad5e9ef4142b851eb5fe @evanphx evanphx committed Feb 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 config/pill.rb
View
2 config/pill.rb
@@ -10,7 +10,7 @@
process.restart_grace_time = 10.seconds
process.environment = { 'RAILS_ENV' => RAILS_ENV }
- process.start_command = "bundle exec rake jobs:work"
+ process.start_command = "bash -l -c 'bundle exec rake jobs:work'"
process.daemonize = true
process.pid_file = "#{RELEASE_PATH}/shared/pids/delayed_job.pid"

0 comments on commit a0e2de3

Please sign in to comment.