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?
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.
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 .
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With