# Strange deployment error

**URL:** <https://www.ruby-forum.com/t/strange-deployment-error/110416>\
**Category:** Deployment\
**Created:** [July 26, 2007, 4:47am UTC](https://www.ruby-forum.com/t/strange-deployment-error/110416 "2007-07-26T04:47:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@andy](https://www.ruby-forum.com/u/andy)\
**Post date:** [July 26, 2007, 4:47am UTC](https://www.ruby-forum.com/t/strange-deployment-error/110416/1 "2007-07-26T04:47:45Z")

</div>

We are having difficulty figuring out why our app works fine in  
mongrel development, but in production it gets messed up.

On an ajax search function (people search, we are a social network) in  
development we get the normal amount of results, but in production  
with the same criteria, much less, and the results are the same no  
matter if you change the values or not.

We thought maybe it has something to do with cache? Any ideas anyone?

We see this error while testing locally, and on our joyent slice…

---

<div class="post-metadata">

**Author:** ![andy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@andy](https://www.ruby-forum.com/u/andy)\
**Post date:** [August 17, 2007, 2:01pm UTC](https://www.ruby-forum.com/t/strange-deployment-error/110416/2 "2007-08-17T14:01:51Z")

</div>

Andy wrote:

> On an ajax search function (people search, we are a social network) in  
> development we get the normal amount of results, but in production  
> with the same criteria, much less, and the results are the same no  
> matter if you change the values or not.

First things first, check out your log files while your ajax queries are  
running. If you’re getting wrong data then you should be able to figure  
it it’s origin out from the log file.

If all else fails, with some simple tweaks to production.rb and  
environment.rb you can make environments act however you like. I would  
incrementally change production.rb to development.rb and keep testing.

Eli
