Re: RubySetEnv
"Dennis Sutch" <[email protected]> Sat, 5 May 2007 21:22:17 -0400
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_71776_19741432.1178414537393 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Responding to my own question: After much trial and error, I've finally found request.setup_cgi_env. This cleaned up the environment variables and added the ones needed from my Apache configuration. I am still looking for a suggestions on why the "RubyRequire auto-reload" directive is failing. Anyone have some experience with auto-reload? - Dennis On 5/5/07, Dennis Sutch <[email protected]> wrote: > > RubySetEnv doesn't seem to be working. > > I have a hander with the following code: > > ENV.sort.each do |variable| > request.write( "<li>#{variable[0]} = #{variable[1]}</li>" ) > end > > This displays all of the environment variables. When I add RubySetEnv > statements to the Apache configuration, no additional variables show up. > Any suggestions? > > Thanks. > > -- > Dennis Sutch > [email protected] -- Dennis Sutch [email protected] ------=_Part_71776_19741432.1178414537393 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Responding to my own question: After much trial and error, I've finally found request<span>.setup_cgi_env. This cleaned up the environment variables and added the ones needed from my Apache configuration.<br><br>I am still looking for a suggestions on why the </span><span>"RubyRequire auto-reload" directive is failing. Anyone have some experience with auto-reload?<br><br></span><span>- Dennis<br><br><br></span><div><span class="gmail_quote">On 5/5/07, <b class="gmail_sendername"> Dennis Sutch</b> <<a href="mailto:[email protected]">[email protected]</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> RubySetEnv doesn't seem to be working.<br><br>I have a hander with the following code:<br><br> ENV.sort.each do |variable|<br> request.write( "<li>#{variable[0]} = #{variable[1]}</li>" )<br> end<br><br>This displays all of the environment variables. When I add RubySetEnv statements to the Apache configuration, no additional variables show up. Any suggestions?<br><br>Thanks.<br clear="all"><span class="sg"> <br>-- <br>Dennis Sutch <br><a href="mailto:[email protected]" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">[email protected]</a> </span></blockquote></div><br><br clear="all"><br>-- <br>Dennis Sutch<br><a href="mailto:[email protected]">[email protected]</a> ------=_Part_71776_19741432.1178414537393--