# Production and development mode

**URL:** <https://www.ruby-forum.com/t/production-and-development-mode/152215>\
**Category:** Rails\
**Created:** [October 31, 2008, 11:38am UTC](https://www.ruby-forum.com/t/production-and-development-mode/152215 "2008-10-31T11:38:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sijo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sijo](https://www.ruby-forum.com/u/sijo)\
**Post date:** [October 31, 2008, 11:38am UTC](https://www.ruby-forum.com/t/production-and-development-mode/152215/1 "2008-10-31T11:38:43Z")

</div>

Hi  
I would like to know the basic difference in running an application  
in development mode and production mode like  
./script/server and  
./script/server RAILS\_ENV=production

Thanks in advance  
Sijo

---

<div class="post-metadata">

**Author:** ![sijo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sijo](https://www.ruby-forum.com/u/sijo)\
**Post date:** [October 31, 2008, 12:05pm UTC](https://www.ruby-forum.com/t/production-and-development-mode/152215/2 "2008-10-31T12:05:56Z")

</div>

On 31 Oct 2008, at 10:38, Sijo Kg wrote:

> Hi  
> I would like to know the basic difference in running an  
> application  
> in development mode and production mode like  
> ./script/server and  
> ./script/server RAILS\_ENV=production

Well at the very least it means the app uses the production database  
instead of the development one (as dictated by database.yml).  
It also means that config/environments/production.rb is loaded instead  
of config/environments/development.rb  
Some settings also have a different default (eg the logger level)

Fred

---

<div class="post-metadata">

**Author:** ![sijo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sijo](https://www.ruby-forum.com/u/sijo)\
**Post date:** [October 31, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/production-and-development-mode/152215/3 "2008-10-31T13:32:39Z")

</div>

On 31 Oct 2008, at 11:49, Sijo Kg wrote:

> Hi  
> thanks for the reply…So is there large speed differnce in  
> development and production mode?  
> Well it depends on the settings you have made. By default there is a  
> big difference because with the default settings your app’s code is  
> reloaded on each request.

Fred

---

<div class="post-metadata">

**Author:** ![sijo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sijo](https://www.ruby-forum.com/u/sijo)\
**Post date:** [October 31, 2008, 12:49pm UTC](https://www.ruby-forum.com/t/production-and-development-mode/152215/4 "2008-10-31T12:49:52Z")

</div>

Hi  
thanks for the reply…So is there large speed differnce in  
development and production mode? Also to run my server in production  
mode I have to do any of the below  
./script/server RAILS\_ENV=production or ./script/server -e production

Is that all done?Nothing other setup is needed?

Sijo

---

<div class="post-metadata">

**Author:** ![sijo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sijo](https://www.ruby-forum.com/u/sijo)\
**Post date:** [October 31, 2008, 4:15pm UTC](https://www.ruby-forum.com/t/production-and-development-mode/152215/5 "2008-10-31T16:15:52Z")

</div>

Also, some plugins behave differently depending on the environment.  
For example, the exception\_notification plugin won’t send you an email  
you when an exception occurs if you’re running in development mode,  
but does in production mode.
