# Development, test, production ... how about stage

**URL:** <https://www.ruby-forum.com/t/development-test-production-how-about-stage/80667>\
**Category:** Rails\
**Created:** [December 29, 2006, 7:15pm UTC](https://www.ruby-forum.com/t/development-test-production-how-about-stage/80667 "2006-12-29T19:15:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 29, 2006, 7:15pm UTC](https://www.ruby-forum.com/t/development-test-production-how-about-stage/80667/1 "2006-12-29T19:15:18Z")

</div>

I find a “mode” is missing when I iterate on my rails apps…

Specifically, right before production, I want to run on my development  
machine as if I am in production mode. It mainly boils down to this…

- I want the production setup (caching, error handling, etc)
- but I want my local machine DB (password, socket, etc)

So I have been using an additional mode that I call stage.

- just copied config/environments/production.rb to stage.rb
- and have a stage item in my database.yml that looks more like  
development

This seems useful to me.

Comments ? Comment enough to think about submitting to the rails folks  
?

– thanks, Andrew

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 29, 2006, 8:33pm UTC](https://www.ruby-forum.com/t/development-test-production-how-about-stage/80667/2 "2006-12-29T20:33:33Z")

</div>

removed\_email\_address@domain.invalid wrote:

> So I have been using an additional mode that I call stage.
> 
> - just copied config/environments/production.rb to stage.rb
> - and have a stage item in my database.yml that looks more like  
> development

That’s how I do it, too.

> Comments ? Comment enough to think about submitting to the rails folks  
> ?

However I don’t think it’s common enough to be considered for core, if  
that what’s you’re asking; it’s easy enough for someone to do it  
themselves (like you did), and everyone is going to want different  
things in their “stage” environment.

Jeff

> **[Hey Daddio!](http://softiesonrails.com)**
>
> Home of Hey Daddio Software
