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 On 1/31/06, Mufaddal Khumri <mkhumri@allegromedical.com> wrote:> 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 mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
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 On 1/31/06, Adam Denenberg <straightflush@gmail.com> wrote:> rails caches controllers in production. set INITIAL_ENV=development > or change the setting in environment.rb that caches controllers > > adam > > > On 1/31/06, Mufaddal Khumri <mkhumri@allegromedical.com> wrote: > > 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 mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
Hi Mufaddal, In production mode, you must restart the server in order for changes to go into effect. Steve http://www.smarkets.net On 1/31/06, Mufaddal Khumri <mkhumri@allegromedical.com> wrote:> > 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 mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060131/dc7198b9/attachment.html
Steve Odom 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