# Radiant and mongrel reloading

**URL:** <https://www.ruby-forum.com/t/radiant-and-mongrel-reloading/116659>\
**Category:** Radiant CMS\
**Created:** [October 8, 2007, 4:04pm UTC](https://www.ruby-forum.com/t/radiant-and-mongrel-reloading/116659 "2007-10-08T16:04:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [October 8, 2007, 4:04pm UTC](https://www.ruby-forum.com/t/radiant-and-mongrel-reloading/116659/1 "2007-10-08T16:04:41Z")

</div>

For the first time ever (for me :)) I set up a radiant site on a nginx

- mongrel setup ([http://vincenzomaiorano.it](http://vincenzomaiorano.it)) and it works fine, but I  
have a problem when I update the radiant code via capistrano, adding  
an extension or changing some values in environment.rb: my capistrano  
tasks call script/process/reaper after updating the code, thus  
restarting the mongrel processes.

If I visit the site after I update I still find the older version of  
the site running, without the newer extensions. If I kill the mongrel  
processes and then I start them again everything runs fine.

Is this the correct behavior?

---

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [October 8, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/radiant-and-mongrel-reloading/116659/2 "2007-10-08T16:11:10Z")

</div>

Are you using the mongrel\_cluster gem? If so, I would change your  
restart (1.4.1) or deploy:restart (2.x) task to look something like  
this:

task :restart, :roles =\> :app do  
run “cd #{current\_path}; mongrel\_rails cluster::restart -C  
/path/to/your/config”  
end

Sean

---

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [October 8, 2007, 4:12pm UTC](https://www.ruby-forum.com/t/radiant-and-mongrel-reloading/116659/3 "2007-10-08T16:12:55Z")

</div>

For debugging, check the PIDs of the relevant processes before/after the  
restart to check that they actually restarted correctly.

```
/AITOR
```

---

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [October 8, 2007, 4:13pm UTC](https://www.ruby-forum.com/t/radiant-and-mongrel-reloading/116659/4 "2007-10-08T16:13:30Z")

</div>

I’m launching the mongrels via process/spawner, does it use the  
mongrel\_cluster gem?

2007/10/8, Sean C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [October 8, 2007, 4:14pm UTC](https://www.ruby-forum.com/t/radiant-and-mongrel-reloading/116659/5 "2007-10-08T16:14:09Z")

</div>

The PIDs change after restart.

2007/10/8, Aitor Garay-Romero [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
