Permalink
Browse files

Explicitly use our version of ruby for delayed job

Running without produces "/usr/bin/env: ruby: No such file or directory"
errors when attempting to run with god
  • Loading branch information...
1 parent d99d873 commit f9b7df77febb83199bd5fccf29a99f2d10169761 @jordanbyron jordanbyron committed Mar 3, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 config/delayed_job.god
View
2 config/delayed_job.god
@@ -1,7 +1,7 @@
rails_root = File.dirname(File.dirname(__FILE__))
God.watch do |w|
- script = "cd #{rails_root} && #{rails_root}/script/delayed_job"
+ script = "cd #{rails_root} && /usr/local/bin/ruby #{rails_root}/script/delayed_job"
w.name = "practicing_ruby_delayed_job"
w.group = "practicing_ruby"
w.interval = 60.seconds

0 comments on commit f9b7df7

Please sign in to comment.