Making RoR Faster

Here are two things to do to make RoR faster:

Production Mode

Put in production mode by taking out the comment in front of this line in config/environment.rb:

ENV['RAILS_ENV'] ||= 'production'

FastCGI

Put in fastcgi mode by editing public/.htaccess and changing to “fcgi” in the line:

RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

The only downside is that you won’t see descriptive error messages, and it won’t automatically pick up new changes to your files. For the later, you can force a reload by:

touch public/dispatch.fcgi