Last Updated: February 25, 2016
· alfonsocora

Two tips to speed up Rails development environment

Remove temp files

rm -r tmp/*

This will save a lot of time when running diff tools like git status, git diff or meld

Use dev-rails-boost

group :development do
  gem 'rails-dev-boost', :git => 'git://github.com/thedarkone/rails-dev-boost.git', :require => 'rails_development_boost'

This gem can make Rails up to 10 times faster in development mode. More info here: https://github.com/thedarkone/rails-dev-boost

4 Responses
Add your response


Why not simply add tmp to .gitignore?

echo 'tmp/*' >> .gitignore 
over 1 year ago ·

@hauleth I have that rule (it's on .gitignore by default), but it's still slow since rails creates a bunch of directories under tmp and git checks them up for some reason. It makes meld slow too.

over 1 year ago ·

If you are on Mac, then slow dev rails is a thing in the past: https://github.com/burke/zeus

I've been using zeus for about a month now. But I still get nerd boner every time I watch a spec actually taking claimed 0.6 seconds.

over 1 year ago ·

@artemave totally! It still has some bugs on linux though. I'm using these workarounds until it gets fixed.

over 1 year ago ·