Tech Journal Back to Tech Journal

Ruby on Rails in development environment is so slow! Can't I speed it up?

Sure, if you installed FastCGI for Apache, (and you already set up Ruby on Rails in Apache) then all you need to do is have the application use dispatch.fcgi instead of dispatch.cgi - it's much faster.

To do this, edit .htaccess in the public directory of the application, to replace the line:

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

with the line:

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

That's it.

Last updated on 2007-08-25 11:45:35 -0700, by Shalom Craimer

Back to Tech Journal