At 10:34 PM -0400 4/24/08, Stephen Bannasch wrote:
>For he dev SDS I tried changing the PATH for the fcgi process in the lighttpd 
>config file -- this seems to have worked.
>
>If it keeps workingI think we should do this for all the rails apps in the 
>lighttpd.conf file and remove our modifications to the shell interpreter path 
>to public/dispatch.fcgi and script/runner.
>
>I changed the lighttpd.conf file for the dev sds by adding
>
>  "PATH" => "/usr/local/bin"
>
>to the bin-environment setting in the fastcgi.server block for the rails app.
>
>Example:
>
>  fastcgi.server = ( ".fcgi" =>
>    (
>        (
>       "socket" => basedir + "sds/log/code.socket",
>       "min-procs" => 2,
>       "max-procs" => 8,
>       "bin-path" =>  basedir + "sds/public/dispatch.fcgi",
>       "bin-environment" => ( "RAILS_ENV" => "production", 
> "RAILS_RELATIVE_URL_ROOT" => "/sds", "PATH" => "/usr/local/bin" )
>  )))

This caused problems when running shell commands from Ruby-- but adding a more 
complete list of paths solved the problem. Now all the fci processes specified 
in the lighttpd config file use this form of fcgi bin-environment setup:

"bin-environment" => ( "RAILS_ENV" => "production", "RAILS_RELATIVE_URL_ROOT" 
=> "/sds", "PATH" => 
"/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin:/usr/java/jdk1.5.0_06/bin" )

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SAIL-Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/SAIL-Dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to