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?
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.