30 March 2007

A quick_dirty trick to set ENV[RAILS_ENV]

 I am using webbrick or Mongrel in development mode and Apache + fcgi in production mode on my site5 server (I'd recommand them, they are very reactive).

I have read that you're supposed to set ENV['RAILS_ENV'] to 'production' in environment.rb
As I am using capistrano de deploy my webapplication, I have tried to move that setting to dispatch.fcgi and it works! No need to get 2 versions of environment.rb (1 for developement & test and 1 for production)

Maybe there is a more elegant solution, I'd love to hear about it!

29 March 2007

Firefox 2.0.3 keeps crashing on my Ubuntu Edgy Eft

Since the lasted automatic update on the 25/03/2007, firefox has been very unstable. Every 20 minutes or so, it crashes with the following message:

"The application 'Gecko' lost its connection to the display :0.0;
most likely the X server was shut down or you killed/destroyed the application."


I am investigating the problem following

https://wiki.ubuntu.com/MozillaTeam/Bugs?action=show&redirect=DebuggingFirefox advices


The same version of firefox running on Windows XP runs absolutely fine, I am looking forward to reporting to the ubuntu community!!! So far, I have no clue, could it be my installation of ubuntu???


The sad truth was that before this update, firefox was more stable in Windows too ...