1

I don't know if the correct title for this is hot deploy. I am modifying controllers and views and I have to restart the server to view those changes.

Why? I think that it didn't worked like this. I am using webrick server. Environment is development.

I am using Rails 3.1

Tony
  • 10,088
  • 20
  • 85
  • 139

1 Answers1

3

Go to your config/environments/development.rb and make sure you have:

Railsapp::Application.configure do
  config.cache_classes = false      
  # ...
end

In mine, it comes with this explanatory comment:

  # In the development environment your application's code is reloaded on
  # every request.  This slows down response time but is perfect for development
  # since you don't have to restart the webserver when you make code changes.
  config.cache_classes = false      
Joshua Cheek
  • 30,436
  • 16
  • 74
  • 83
  • Thanks. Now I remember that I changed this value because of a active_admin/devise/rails3 compatibility issue – Tony Dec 29 '11 at 01:06