RoR production app does not refresh

Hi,

We have a RoR app deployed using Apache + fastcgi in production mode.
When we make a change to say a controller filie on the server and go
back to that page that executes that controller action it takes no
effect. Does Rails cache pages and if so how does one force the new page
to be used?

Thanks,

rails caches controllers in production. set INITIAL_ENV=development
or change the setting in environment.rb that caches controllers

adam

sorry i dont think i answered your question. You can reload the
fastcgi process by running

script/process/reaper -a reload

This will reload all the controller caches.

adam

Hi Mufaddal,

In production mode, you must restart the server in order for changes to
go
into effect.

Steve
http://www.smarkets.net

Steve O. wrote:

In production mode, you must restart the server in order for changes to
go into effect.

Not exactly… in production mode you must reload the application code,
which is
done using ./script/process/reaper from the root level of your Rails
application.

Restarting Apache would accomplish a similar effect, but that would
likely
orphan whatever FastCGI listeners you had been using. It’s far better to
just
restart those processes and leave restarting the web server for when you
change
the web server configuration.

Also, if you use SVN for your source control, you could install and
configure
Switchtower and use it to both deploy the latest version of your app
code to the
production server and automatically bounce the FastCGI listeners…

-Brian