# Best way to update site under thin

**URL:** <https://www.ruby-forum.com/t/best-way-to-update-site-under-thin/145449>\
**Category:** Rails\
**Created:** [August 9, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/best-way-to-update-site-under-thin/145449 "2008-08-09T18:07:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![skirkpatrick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/73ab20/32.png) [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Post date:** [August 9, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/best-way-to-update-site-under-thin/145449/1 "2008-08-09T18:07:03Z")

</div>

recently i have been using apache/passenger (mod\_rails) as my  
production/development environment but have been having some issues so i  
switched to nginx/thin.

what i am wondering is how should i push my updates now if i have  
multiple page changes to make at once to production.

with passenger…none of the changes would take effect until i did a  
touch tmp/restart.txt since the pages were cached. now, the updates are  
done instantly without any restart of the web services.

if i have to update multiple pages at once which will break other pages  
during the process, what would you do?

---

<div class="post-metadata">

**Author:** ![skirkpatrick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/73ab20/32.png) [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Post date:** [August 9, 2008, 8:26pm UTC](https://www.ruby-forum.com/t/best-way-to-update-site-under-thin/145449/2 "2008-08-09T20:26:33Z")

</div>

On Aug 9, 9:07 am, Scott K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> with passenger…none of the changes would take effect until i did a  
> touch tmp/restart.txt since the pages were cached. now, the updates are  
> done instantly without any restart of the web services.

Do you have the following in your config/environments/production.rb?

config.action\_controller.perform\_caching = true  
config.action\_view.cache\_template\_loading = true

---

<div class="post-metadata">

**Author:** ![skirkpatrick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/73ab20/32.png) [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Post date:** [August 9, 2008, 9:09pm UTC](https://www.ruby-forum.com/t/best-way-to-update-site-under-thin/145449/3 "2008-08-09T21:09:16Z")

</div>

On Aug 9, 6:07 pm, Scott K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> if i have to update multiple pages at once which will break other pages  
> during the process, what would you do?

Are you sure you’re running Thin in production mode?

---

<div class="post-metadata">

**Author:** ![skirkpatrick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/73ab20/32.png) [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Post date:** [August 9, 2008, 9:46pm UTC](https://www.ruby-forum.com/t/best-way-to-update-site-under-thin/145449/4 "2008-08-09T21:46:03Z")

</div>

Matt Haley wrote:

> On Aug 9, 9:07ï¿½am, Scott K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:
> 
> > with passenger…none of the changes would take effect until i did a  
> > touch tmp/restart.txt since the pages were cached. ï¿½now, the updates are  
> > done instantly without any restart of the web services.
> 
> Do you have the following in your config/environments/production.rb?
> 
> config.action\_controller.perform\_caching = true  
> config.action\_view.cache\_template\_loading = true

oops your right! i was testing on my development environment. for some  
reason i was thinking it was the same.  
thanks!
