wasqug
Last Updated: February 25, 2016
·
4.159K
· 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'
end

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

681

Why not simply add tmp to .gitignore?

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

@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 ·
728

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 ·
729

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

over 1 year ago ·