John, I had this very same problem last night and the only way to solve it was to use a line just like you suggested:
ENV['HOME'] = '/home/xyz/' My environment is Litespeed 3.03 running on Centos. Took me a while to figure it out. Maybe a _gotcha_ section in the install docs would help. Sincerely, AEM On 4/26/07, John W. Long <[EMAIL PROTECTED]> wrote: > keita wrote: > > Some few people (including me) reported "couldn't find HOME > > environment" problem in this ML and trac(for example ticket #500). > > Ticket #500 was closed by the reason "This is an issue with your > > server setup. It's not a problem with Radiant.", but I don't think so. > > I believe this is because > > lib/plugins/extension_patches/lib/generator_base_extension.rb does > > "require 'rails_generator'". Dispatchers(.cgi, .fcgi and .rb) of > > Radiant don't need this file and I think these must not load > > rails_generator. The problem happens to people using CGI or Apache(or > > Lighttpd)/fast-cgi in most cases because HOME environment is not a > > standard CGI metavariable. > > How does generator_base_extension.rb affect the HOME environment > variable? Does the default Rails generator set the HOME environment > variable in environment.rb? I don't believe it does. So again this isn't > a problem with Radiant. It's a problem with the way your hosting > environment is configured. > > We could certainly add a few lines to environment.rb that were commented > out like this: > > # Depending on how your envoronment is set up you may need to uncomment > # the following line and enter the correct path to your home directory: > #ENV['HOME'] = '/path/to/your/home/directory' > > Would this be helpful? > > -- > John Long > http://wiseheartdesign.com > _______________________________________________ > Radiant mailing list > Post: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > -- Adrian Esteban Madrid _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
