Don’t know if something like this exists already, but thought I’d
advertise my script
Rails is slow. Rails in development mode on old computers is WAY slow.
There is hope, however. Just run it in production mode [fast!] and have
it restart whenever a file change occurs. Slow to restart, perhaps, but
far faster than reloading all files per request, which is development
mode. This allowed me to develop in rails on my 1 GHz PPC [like 6 years
old] and still consider it survivable.
How to get/run:
buried in here is rails/rails_useful.rb, which contains a function
def fire_up_file_modification_checker_thread reload_dirs =
[‘app/controllers’, ‘app/schools’, ‘app/models’], death_dirs =
so put that file in your lib dir, include it in your environment.rb,
and, if it’s like mine, add something like this to environment.rb
fire_up_file_modification_checker_thread() if Socket.gethostname =~
/Roger/ # if you’re on a dev machine
and watch the goodness go. And then stop. And restart.