# Reload controller with FCGI

**URL:** <https://www.ruby-forum.com/t/reload-controller-with-fcgi/63214>\
**Category:** Rails\
**Created:** [January 19, 2006, 11:32pm UTC](https://www.ruby-forum.com/t/reload-controller-with-fcgi/63214 "2006-01-19T23:32:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamdorsey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@adamdorsey](https://www.ruby-forum.com/u/adamdorsey)\
**Post date:** [January 19, 2006, 11:32pm UTC](https://www.ruby-forum.com/t/reload-controller-with-fcgi/63214/1 "2006-01-19T23:32:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![adamdorsey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@adamdorsey](https://www.ruby-forum.com/u/adamdorsey)\
**Post date:** [January 19, 2006, 11:53pm UTC](https://www.ruby-forum.com/t/reload-controller-with-fcgi/63214/2 "2006-01-19T23:53:59Z")

</div>

Run the command “script/process/reaper reload” in your Rails base  
directory.

-Will

---

<div class="post-metadata">

**Author:** ![adamdorsey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@adamdorsey](https://www.ruby-forum.com/u/adamdorsey)\
**Post date:** [January 19, 2006, 11:57pm UTC](https://www.ruby-forum.com/t/reload-controller-with-fcgi/63214/3 "2006-01-19T23:57:02Z")

</div>

Check out the “Better FCGI” section in these Rails release notes:  
[http://documentation.rubyonrails.com/release\_notes/rc2.html](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](http://wiki.rubyonrails.com/rails/pages/LighttpdWithProcessScripts)

---

<div class="post-metadata">

**Author:** ![adamdorsey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@adamdorsey](https://www.ruby-forum.com/u/adamdorsey)\
**Post date:** [January 20, 2006, 12:12am UTC](https://www.ruby-forum.com/t/reload-controller-with-fcgi/63214/4 "2006-01-20T00:12:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![adamdorsey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@adamdorsey](https://www.ruby-forum.com/u/adamdorsey)\
**Post date:** [January 20, 2006, 1:09am UTC](https://www.ruby-forum.com/t/reload-controller-with-fcgi/63214/5 "2006-01-20T01:09:31Z")

</div>

that would definitely explain it thanks !

---

<div class="post-metadata">

**Author:** ![adamdorsey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@adamdorsey](https://www.ruby-forum.com/u/adamdorsey)\
**Post date:** [January 20, 2006, 12:45am UTC](https://www.ruby-forum.com/t/reload-controller-with-fcgi/63214/6 "2006-01-20T00:45:19Z")

</div>

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 D. wrote:

> > From: removed\_email\_address@domain.invalid  
> > adam
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

-Ezra Z.  
Yakima Herald-Republic  
WebMaster  
[http://yakimaherald.com](http://yakimaherald.com)  
509-577-7732  
removed\_email\_address@domain.invalid
