# Problem with deploying changes in production

**URL:** <https://www.ruby-forum.com/t/problem-with-deploying-changes-in-production/172517>\
**Category:** Rails\
**Created:** [July 22, 2009, 6:55pm UTC](https://www.ruby-forum.com/t/problem-with-deploying-changes-in-production/172517 "2009-07-22T18:55:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sultan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aeb1de/32.png) [@sultan](https://www.ruby-forum.com/u/sultan)\
**Post date:** [July 22, 2009, 6:55pm UTC](https://www.ruby-forum.com/t/problem-with-deploying-changes-in-production/172517/1 "2009-07-22T18:55:52Z")

</div>

Problem with deploying changes in production.

In my /config/environment/production.rb, if I have:  
config.cache\_classes = false  
and I run “ruby script/server -e production”  
I can see my new changes.

When I change the /config/environment/production.rb back to:  
config.cache\_classes = true  
and kill and restart the server with “ruby script/server -e  
production”  
the changes are not there. Some how, the old code is still there.

---

<div class="post-metadata">

**Author:** ![sultan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aeb1de/32.png) [@sultan](https://www.ruby-forum.com/u/sultan)\
**Post date:** [July 23, 2009, 2:05am UTC](https://www.ruby-forum.com/t/problem-with-deploying-changes-in-production/172517/2 "2009-07-23T02:05:35Z")

</div>

Any help would be appreciated.
