Rails Webrick: Configuring Which Directories Are Browse for Changes

At the moment, I have to restart the server if I change the files in the lib / and app / helpers / directories. Is there a way to configure Rails or Webrick so that it also copies files in these directories?

+3
source share
1 answer

In config/application.rb:

config.autoload_paths += %W(#{config.root}/lib #{config.root}/app/helpers)

There should be a commented line explaining what it means autoload_paths.

+1
source

All Articles