| Home | Business | Personal | Contact |
||
Max S. Dunn...when there is a will, there is a way |
||
Here are two things to do to make RoR faster:
Put in production mode by taking out the comment in front of this line in config/environment.rb:
ENV['RAILS_ENV'] ||= 'production'
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