[Radiant] Rack Lighttpd fix breaks extension migration
Several weeks ago, I asked a question about caching problems on shared hosting which was nicely resolved by this: http://workswithruby.com/2009/7/rack-cache-and-lighttpd-fcgi So everything works fine, until I try to install an extension and run its migration. I installed ray, help, and mailer: things are fine. I can install settings and paperclipped, but they are non-functional, and I cannot run the rake production db:migrate:extensions task. It fails with the following error: no such file to load -- rack/lighttpd_fix This obviously has to do with the above hack, but everything I've tried to work around it has not worked. Any help would be appreciated. System Info: Rails 2.3.3, Radiant 0.8.1, Bluehost shared hosting service. Thanks! Tom ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Rack Lighttpd fix breaks extension migration
Try pasting the code he mentions directly into config/environments/production.rb. It seems that is being triggered because Rails is trying to load Rack::LighttpdFix by requiring 'rack/lighttpd_fix'. Sean Tom Stoll wrote: > Several weeks ago, I asked a question about caching problems on shared > hosting which was nicely resolved by this: > > http://workswithruby.com/2009/7/rack-cache-and-lighttpd-fcgi > > So everything works fine, until I try to install an extension and run its > migration. I installed ray, help, and mailer: things are fine. I can install > settings and paperclipped, but they are non-functional, and I cannot run > the rake production db:migrate:extensions task. It fails with the following > error: > > no such file to load -- rack/lighttpd_fix > > This obviously has to do with the above hack, but everything I've tried to > work around it has not worked. > > Any help would be appreciated. > > System Info: Rails 2.3.3, Radiant 0.8.1, Bluehost shared hosting service. > > Thanks! > Tom > ___ > Radiant mailing list > Post: Radiant@radiantcms.org > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > > ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Rack Lighttpd fix breaks extension migration
Sean, Your suggestion works. I actually had to copy the lighttpd_fix.rb file into the /lib/rack folder and add an autoload to rack.rb to get things working. I'll put this info on the wiki, as it would seem necessary to run the migrations for new extensions. I wonder if this fix might be included in future versions of Rack, even if its only necessary for use with shared hosts... Thanks, Tom ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant