[Rails] Re: Re: No more logs after SVN? "SOLUTION"

softwareengineer 99 softwareengineer99 at yahoo.com
Wed Feb 8 14:39:50 GMT 2006


All I have in my apache conf files is:
  
  AddHandler fastcgi-script .fcgi
  AddHandler cgi-script .cgi
  
  and if I try to put 
-initial-env RAILS_ENV=development
  
  I get an error 
  "Invalid command '-initial-env', perhaps mis-spelled or defined by a module not included in the server configuration"
  
  I am using Apache 2, if that helps?
  
  Thanks
  Frank
  
Harm <harmaarts at gmail.com> wrote:  Well I think I figured it out. After the directive FastCgiServer in my 
apache conf files I put -initial-env RAILS_ENV=development. Then I 
removed the stale development.log file and restarted apache. This 
created a new log file! NOTE: if you remove the log file and do *not* 
restart apache, no new log file will appear.
Rejoice!

Guest wrote:
> Well the environment is just development. Nothing changed there. And the
> funny thing is that Webbrick neatly logs everything. Only Apache does
> not. And all the permissions are correct. The webserver can write in the
> relevant directory.
> Puzzlement reigns.
> 
> Łukasz Piestrzeniewicz wrote:
>> On 07/02/06, Harm  wrote:
>>> I do have the same problem. And tried the solution stated here but that
>>> did not work. Is there a solution? This is really silly.
>> 
>> Are you using development environment or other? Try setting RAILS_ENV
>> environment variable to name of environment you are using:
>> 
>> $ RAILS_ENV=development ./script/server


-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Rails mailing list
Rails at lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails


		
---------------------------------
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060208/51719ed9/attachment.html


More information about the Rails mailing list