Forum: Ruby on Rails reload controller with FCGI

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F15fdc7cb2e911b3808837f2be244add?d=identicon&s=25 Adam Denenberg (Guest)
on 2006-01-19 23:32
(Received via mailing list)
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
9b7647d55df4584d7031130915556040?d=identicon&s=25 Will Briggs (Guest)
on 2006-01-19 23:53
(Received via mailing list)
Run the command "script/process/reaper reload" in your Rails base
directory.

-Will
3f900b38ec3b2c45427c354722fa4ce3?d=identicon&s=25 Tom Fakes (tomfakes)
on 2006-01-19 23:57
(Received via mailing list)
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/LighttpdWi...
F15fdc7cb2e911b3808837f2be244add?d=identicon&s=25 Adam Denenberg (Guest)
on 2006-01-20 00:12
(Received via mailing list)
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
132a94ca65959bda6c74fae54bff2425?d=identicon&s=25 Ezra Zygmuntowicz (Guest)
on 2006-01-20 00:45
(Received via mailing list)
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:

>
>> From: rails-bounces@lists.rubyonrails.org
>> adam
> _______________________________________________
> 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
F15fdc7cb2e911b3808837f2be244add?d=identicon&s=25 Adam Denenberg (Guest)
on 2006-01-20 01:09
(Received via mailing list)
that would definitely explain it thanks !
This topic is locked and can not be replied to.