# Dev mode ok, prod mode application failed error

**URL:** <https://www.ruby-forum.com/t/dev-mode-ok-prod-mode-application-failed-error/154611>\
**Category:** Deployment\
**Created:** [December 2, 2008, 4:57am UTC](https://www.ruby-forum.com/t/dev-mode-ok-prod-mode-application-failed-error/154611 "2008-12-02T04:57:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![softf5ajivanet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9f8e36/32.png) [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Post date:** [December 2, 2008, 4:57am UTC](https://www.ruby-forum.com/t/dev-mode-ok-prod-mode-application-failed-error/154611/1 "2008-12-02T04:57:04Z")

</div>

Hello,  
I’m new to RoR and trying to deploy a RoR2 app. It works in development  
mode, but when I switch to production mode by uncommenting the  
ENV[‘RAILS\_ENV’] ||= ‘production’ line in config/environment.rb, I get  
the dreaded “application failed to start properly” unhelp error.  
This is on a remote hosting service ([hostmonster.com](http://hostmonster.com)), so I don’t have  
any control over the system. They are using Ruby 1.8.6, Rails 2.2.2, and  
apache2 v2.2.10.

Where can I find log info for my app? The log/production.log is empty,  
and I can’t get to the apache log. Where else can I look?

What could be the problem? I looked at my .htaccess file, and all is  
well (it worked in dev mode). I checked my permissions; all seem OK (and  
they worked in dev mode). I have uncommented and modified the  
RAILS\_GEM\_VERSION = ‘2.2.2’ unless defined? RAILS\_GEM\_VERSION line in  
environment.rb as well (this caused me a problem in devl mode, so it was  
the first thing I checked in prod mode).

Thanks in advance for any help! Let me know if you want to see  
code/files/etc.

John
