wasqug
Last Updated: February 25, 2016
·
3.718K
· alfonsocora
706e4a4e983d018be7ad544cc0e5e6e4

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

Say Thanks
Respond

4 Responses
Add your response

681
Me

Why not simply add tmp to .gitignore?

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

@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
3dda5dfd21d398021466f71f871920de

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
706e4a4e983d018be7ad544cc0e5e6e4

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

over 1 year ago ·