# Last minute switch to production mode - recommended?

**URL:** <https://www.ruby-forum.com/t/last-minute-switch-to-production-mode-recommended/115369>\
**Category:** Deployment\
**Created:** [September 24, 2007, 3:15pm UTC](https://www.ruby-forum.com/t/last-minute-switch-to-production-mode-recommended/115369 "2007-09-24T15:15:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [September 24, 2007, 3:15pm UTC](https://www.ruby-forum.com/t/last-minute-switch-to-production-mode-recommended/115369/1 "2007-09-24T15:15:48Z")

</div>

Question - My rails project is due in in a few hours. It’s running on  
the net in development mode, on a Bluehost shared server. Because its  
in dev mode, if anything goes wrong you get the nasty rails crash info  
(useful for me, bad for users).

Maybe it’s the coffee, but i’ve got a sudden urge to get it running in  
production mode so i can do some nice ‘error’ pages for the 404 and 500.  
Getting it working in dev mode required quite a lot of work on several  
people’s parts just due to the vagaries of Bluehost mainly.

So - switching to production mode. Have i lost it? Should i stick with  
what i’ve got? Or go for it? How do i go about doing it if i want to?  
I’ve got the production database set up - do i need anything else?

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [September 24, 2007, 4:13pm UTC](https://www.ruby-forum.com/t/last-minute-switch-to-production-mode-recommended/115369/2 "2007-09-24T16:13:29Z")

</div>

If it’s a pain to get the databases set up, then the quickest way to get  
into production mode is such:

config/database.yml – set production database to development database  
config/environment.rb – manually set RAILS\_ENV to production

Restart your server and you’re in production mode.

Jason

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [September 24, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/last-minute-switch-to-production-mode-recommended/115369/3 "2007-09-24T16:37:42Z")

</div>

Jason R. wrote:

> If it’s a pain to get the databases set up, then the quickest way to get  
> into production mode is such:
> 
> config/database.yml – set production database to development database  
> config/environment.rb – manually set RAILS\_ENV to production
> 
> Restart your server and you’re in production mode.
> 
> Jason

cheers!
