Reputation: 2809
What I'm trying to determine is what can be changed on-the-fly in a Rails application w/o restarting the web server.
My assumption is that anything that requires bundler needs restarting and any regular ascii based files (html/css/js) or images can be modified on the fly, but how about:
Do any changes to the ruby (*.erb, *.rb) files require a recompile and the web server to be restarted?
Upvotes: 1
Views: 41
Reputation: 18835
There is no strict answer to that question.
In general, Rails tries to reload everything it can without sacrificing development speed.
That is basically everything in app
and what you define in config.autoload_paths
.
You can circumvent some restrictions yourself, have a look about how to enable middleware code reloading: Reloading rails middleware without restarting the server in development
Upvotes: 1