Stephen Bannasch
4/25/2008 3:45:00 AM
ara,
Backgroundjob works great -- Thanks!
I have about 40 jobs in the job table that have errors and I'd like
to rerun them because I've fixed the condition which caused the
error. Is there a way to re-run them using Bj?
--- fyi: background on my problem for others ---
I'm running rails fcgi instances from lighttpd and ruby is located here:
/usr/local/bin/ruby
Long ago I had set the ruby shell interpreter path for dispatch.fcgi to:
/usr/local/bin/ruby
and forgot about it.
/script/runner uses:
/usr/bin/env ruby
Which when running under the lighttpd user resolves to:
/usr/bin/ruby
Which isn't the same ruby and doesn't have the same gems.
I could fix it by re-writing the shell interpreter path for
script/runner or by changing the lighttpd.conf file by adding "PATH"
=> "/usr/local/bin" to the bin-environment setting in the
fastcgi.server for the rails app.
Example:
fastcgi.server = ( ".fcgi" =>
(
(
"socket" => basedir + "railsapp/log/code.socket",
"min-procs" => 2,
"max-procs" => 8,
"bin-path" => basedir + "railsapp/public/dispatch.fcgi",
"bin-environment" => ( "RAILS_ENV" => "production",
"RAILS_RELATIVE_URL_ROOT" => "/railsapp", "PATH" => "/usr/local/bin" )
)))