Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What can I do to speed up Rails development mode?

Rails, on development mode is SLOW. Very, very slow. I run Vista, and I set config.cache_classes = true in development.rb... But, it's still slow and I have to restart the server after I change my code.

My coworker develops Rails on a Mac and sees similar slowness.

My development time slows down significantly because it takes minutes to test out code changes.

Is this as good as Rails development gets? Or am I missing something that'll make it fast and my life happy?

like image 699
user94154 Avatar asked Aug 12 '09 00:08

user94154


People also ask

Why is Ruby on Rails so slow?

Rails works slower than any narrowly-targeted framework because Rails is a universal framework that contains many default functionalities that a developer doesn't have to write from scratch or install. For example, Rails has a default web server, called Puma.

How do I run rails server in developer mode?

Go to your browser and open http://localhost:3000, you will see a basic Rails app running. You can also use the alias "s" to start the server: bin/rails s . The server can be run on a different port using the -p option. The default development environment can be changed using -e .


1 Answers

The rails-dev-boost plugin speeds up Rails development mode. I was having the same problem, and this plugin made my application very snappy (compared to few second load per page). It will run at similar speed as production!

http://github.com/thedarkone/rails-dev-boost

To install it:

script/plugin install git://github.com/thedarkone/rails-dev-boost
like image 122
Richard Millan Avatar answered Oct 15 '22 05:10

Richard Millan