# Commands I will need to know in production

**URL:** <https://www.ruby-forum.com/t/commands-i-will-need-to-know-in-production/173665>\
**Category:** Rails\
**Created:** [August 13, 2009, 12:30am UTC](https://www.ruby-forum.com/t/commands-i-will-need-to-know-in-production/173665 "2009-08-13T00:30:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elricstorm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/da6949/32.png) [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Post date:** [August 13, 2009, 12:30am UTC](https://www.ruby-forum.com/t/commands-i-will-need-to-know-in-production/173665/1 "2009-08-13T00:30:50Z")

</div>

I’m fairly certain this is an easy question to answer but I like to make  
things more complicated than they need to be.

I notice that a lot of people have:

RAILS\_ENV=production

… in their environment.rb files

I don’t have this in mine on production but passenger/apache startup my  
app just fine in production mode. So, is it really necessary?

I also noticed that in order to do rake tasks against the production  
server I had to type:

RAILS\_ENV=production rake foo with foo being the task to perform. Is  
this due to the fact that I don’t have RAILS\_ENV=production in my  
environment.db? Or, is this normal default behavior that I should get  
used to understanding?

And, lastly, is there any commands that I’ve been using in development  
that will definitely change in production? Rake was one of them. Any  
others? A possible cheat sheet around?

Many thanks.

---

<div class="post-metadata">

**Author:** ![elricstorm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/da6949/32.png) [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Post date:** [August 13, 2009, 12:40am UTC](https://www.ruby-forum.com/t/commands-i-will-need-to-know-in-production/173665/2 "2009-08-13T00:40:04Z")

</div>

Alpha B. wrote:

> I’m fairly certain this is an easy question to answer but I like to make  
> things more complicated than they need to be.

Yes you do. Please stop.

> I notice that a lot of people have:
> 
> RAILS\_ENV=production
> 
> … in their environment.rb files
> 
> I don’t have this in mine on production but passenger/apache startup my  
> app just fine in production mode. So, is it really necessary?

No. And if you read the relevant docs, you will find that it’s not the  
preferred way of doing things.

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![elricstorm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/da6949/32.png) [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Post date:** [August 13, 2009, 1:31am UTC](https://www.ruby-forum.com/t/commands-i-will-need-to-know-in-production/173665/3 "2009-08-13T01:31:47Z")

</div>

Alpha B. wrote:

> Hehe Marnen, if I could stop overthinking things, you’d make my fiance a  
> happy woman. 🙂
> 
> One day, perhaps.

🙂 I’m not going to get involved in relationship counseling, except to  
say that your fiancÃ©e might have a point. (Then again, mine might say  
similar things about me…)

> Okay, so is there a good resource for production commands that I should  
> become familiar with or a few that are going to be performed a lot?

You’re probably going to be doing the same things on your production  
server that you’ve already been doing on your dev server. But do check  
out Webmin (as I’ve suggested a couple of times) if you want a nice  
Web-based general purpose admin tool. Particularly with the StressFree  
theme, it’s great.  
As for the rest…well, from your intro posts, it sounds like you’re  
more of a sysadmin than I am, so there’s probably not a heck of a lot I  
can add, unless it be \*nix-specific stuff that you have’t had to learn.

> I already have the capistrano commands bookmarked and I’m becoming  
> familiar with them. Capistrano really is nice once you get it setup  
> properly.

Toldja. 😃

> The only commands that I use with rails right now are rake tasks,  
> capistrano commands and that’s about it. Anything else?

Depends on your individual needs, but probably not. That and general  
server and DB administration should get you a long way.

> Thanks again.
> 
> Take care,

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![elricstorm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/da6949/32.png) [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Post date:** [August 13, 2009, 12:57am UTC](https://www.ruby-forum.com/t/commands-i-will-need-to-know-in-production/173665/4 "2009-08-13T00:57:01Z")

</div>

Hehe Marnen, if I could stop overthinking things, you’d make my fiance a  
happy woman. 🙂

One day, perhaps.

Okay, so is there a good resource for production commands that I should  
become familiar with or a few that are going to be performed a lot?

I already have the capistrano commands bookmarked and I’m becoming  
familiar with them. Capistrano really is nice once you get it setup  
properly.

The only commands that I use with rails right now are rake tasks,  
capistrano commands and that’s about it. Anything else?

Thanks again.

Take care,
