since webrick does not need to run with FCGI how do you get a rails app in FCGI mode to reload the controller (since it caches in production). Is it simply a restart of apache ? adam
Run the command "script/process/reaper reload" in your Rails base directory. -Will On 1/19/06, Adam Denenberg <straightflush@gmail.com> wrote:> since webrick does not need to run with FCGI how do you get a rails > app in FCGI mode to reload the controller (since it caches in > production). Is it simply a restart of apache ? > > adam > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Check out the "Better FCGI" section in these Rails release notes: http://documentation.rubyonrails.com/release_notes/rc2.html There''s also documentation here on how to do this: http://wiki.rubyonrails.com/rails/pages/LighttpdWithProcessScripts -----Original Message----- From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Adam Denenberg Sent: Thursday, January 19, 2006 1:53 PM To: rails@lists.rubyonrails.org Subject: [Rails] reload controller with FCGI since webrick does not need to run with FCGI how do you get a rails app in FCGI mode to reload the controller (since it caches in production). Is it simply a restart of apache ? adam _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails
thanks guys. I am a little confused though. I am running fastcgi in production mode (production.log is updated and INITIAL_ENV is set to prodction), however i am able to make changes to controllers without restarting. I just added a new controller and rails picked it up and displayed it. isnt this not supposed to happen in production mode ? adam On 1/19/06, Tom Fakes <tom@craz8.com> wrote:> Check out the "Better FCGI" section in these Rails release notes: > http://documentation.rubyonrails.com/release_notes/rc2.html > > There''s also documentation here on how to do this: > http://wiki.rubyonrails.com/rails/pages/LighttpdWithProcessScripts > > > > -----Original Message----- > From: rails-bounces@lists.rubyonrails.org > [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Adam Denenberg > Sent: Thursday, January 19, 2006 1:53 PM > To: rails@lists.rubyonrails.org > Subject: [Rails] reload controller with FCGI > > since webrick does not need to run with FCGI how do you get a rails > app in FCGI mode to reload the controller (since it caches in > production). Is it simply a restart of apache ? > > adam > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Adam- You have run into an exception to the rule. In production mode, changes to the controllers and models will not be picked up until you restart. But if you add entirely new controllers and models, they will be picked up the first time you hit them from a browser. After that, they will not show changes until the webserver is bounced. Cheers- -Ezra On Jan 19, 2006, at 2:33 PM, Adam Denenberg wrote:> thanks guys. I am a little confused though. > > I am running fastcgi in production mode (production.log is updated > and INITIAL_ENV is set to prodction), however i am able to make > changes to controllers without restarting. > > I just added a new controller and rails picked it up and displayed it. > isnt this not supposed to happen in production mode ? > > adam > > On 1/19/06, Tom Fakes <tom@craz8.com> wrote: >> Check out the "Better FCGI" section in these Rails release notes: >> http://documentation.rubyonrails.com/release_notes/rc2.html >> >> There''s also documentation here on how to do this: >> http://wiki.rubyonrails.com/rails/pages/LighttpdWithProcessScripts >> >> >> >> -----Original Message----- >> From: rails-bounces@lists.rubyonrails.org >> [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Adam >> Denenberg >> Sent: Thursday, January 19, 2006 1:53 PM >> To: rails@lists.rubyonrails.org >> Subject: [Rails] reload controller with FCGI >> >> since webrick does not need to run with FCGI how do you get a rails >> app in FCGI mode to reload the controller (since it caches in >> production). Is it simply a restart of apache ? >> >> adam >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-Ezra Zygmuntowicz Yakima Herald-Republic WebMaster http://yakimaherald.com 509-577-7732 ezra@yakima-herald.com
that would definitely explain it thanks ! On 1/19/06, Ezra Zygmuntowicz <ezra@yakima-herald.com> wrote:> Adam- > > You have run into an exception to the rule. In production mode, > changes to the controllers and models will not be picked up until you > restart. But if you add entirely new controllers and models, they > will be picked up the first time you hit them from a browser. After > that, they will not show changes until the webserver is bounced. > > Cheers- > -Ezra > > On Jan 19, 2006, at 2:33 PM, Adam Denenberg wrote: > > > thanks guys. I am a little confused though. > > > > I am running fastcgi in production mode (production.log is updated > > and INITIAL_ENV is set to prodction), however i am able to make > > changes to controllers without restarting. > > > > I just added a new controller and rails picked it up and displayed it. > > isnt this not supposed to happen in production mode ? > > > > adam > > > > On 1/19/06, Tom Fakes <tom@craz8.com> wrote: > >> Check out the "Better FCGI" section in these Rails release notes: > >> http://documentation.rubyonrails.com/release_notes/rc2.html > >> > >> There''s also documentation here on how to do this: > >> http://wiki.rubyonrails.com/rails/pages/LighttpdWithProcessScripts > >> > >> > >> > >> -----Original Message----- > >> From: rails-bounces@lists.rubyonrails.org > >> [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Adam > >> Denenberg > >> Sent: Thursday, January 19, 2006 1:53 PM > >> To: rails@lists.rubyonrails.org > >> Subject: [Rails] reload controller with FCGI > >> > >> since webrick does not need to run with FCGI how do you get a rails > >> app in FCGI mode to reload the controller (since it caches in > >> production). Is it simply a restart of apache ? > >> > >> adam > >> _______________________________________________ > >> Rails mailing list > >> Rails@lists.rubyonrails.org > >> http://lists.rubyonrails.org/mailman/listinfo/rails > >> > >> _______________________________________________ > >> Rails mailing list > >> Rails@lists.rubyonrails.org > >> http://lists.rubyonrails.org/mailman/listinfo/rails > >> > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > -Ezra Zygmuntowicz > Yakima Herald-Republic > WebMaster > http://yakimaherald.com > 509-577-7732 > ezra@yakima-herald.com > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >