# Mongrel in development mode not reloading classes

**URL:** <https://www.ruby-forum.com/t/mongrel-in-development-mode-not-reloading-classes/128687>\
**Category:** Rails\
**Created:** [February 10, 2008, 2:49pm UTC](https://www.ruby-forum.com/t/mongrel-in-development-mode-not-reloading-classes/128687 "2008-02-10T14:49:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andy\_Mayer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@Andy\_Mayer](https://www.ruby-forum.com/u/Andy_Mayer)\
**Post date:** [February 10, 2008, 2:49pm UTC](https://www.ruby-forum.com/t/mongrel-in-development-mode-not-reloading-classes/128687/1 "2008-02-10T14:49:01Z")

</div>

Hi there,

Even though I am running Mongrel in development mode, I have to  
manually restart Mongrel to load any changes that I have made to  
controller or model code.

This is the output when I start Mongrel:

$ script/server start  
./script/…/config/boot.rb:29:Warning: require\_gem is obsolete. Use  
gem instead.  
=\> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)  
=\> Rails application starting on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
=\> Call with -d to detach  
=\> Ctrl-C to shutdown server  
\*\* Starting Mongrel listening at 0.0.0.0:3000  
\*\* Starting Rails with development environment…  
\*\* Rails loaded.  
\*\* Loading any Rails specific GemPlugins  
\*\* Signals ready. TERM =\> stop. USR2 =\> restart. INT =\> stop (no  
restart).  
\*\* Rails signals registered. HUP =\> reload (without restart). It  
might not work well.  
\*\* Mongrel 1.1.3 available at 0.0.0.0:3000  
\*\* Use CTRL-C to stop.

Any ideas? I am on MAC OS 10.4.11

Thanks,

Andy

---

<div class="post-metadata">

**Author:** ![Andy\_Mayer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@Andy\_Mayer](https://www.ruby-forum.com/u/Andy_Mayer)\
**Post date:** [February 10, 2008, 3:03pm UTC](https://www.ruby-forum.com/t/mongrel-in-development-mode-not-reloading-classes/128687/2 "2008-02-10T15:03:53Z")

</div>

I forgot to mention that the following is in config/development.rb

config.cache\_classes = false

Andy

---

<div class="post-metadata">

**Author:** ![Andy\_Mayer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@Andy\_Mayer](https://www.ruby-forum.com/u/Andy_Mayer)\
**Post date:** [February 10, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/mongrel-in-development-mode-not-reloading-classes/128687/3 "2008-02-10T15:11:35Z")

</div>

SOLVED!

Sorry to reply to my own post, but I found the problem.

I had the following in the environment.rb

```
    require 'ragi/call_server'

```

I’m not sure why RAGI caused this behaviour, but at least I know  
what’s causing it now!

Andy
