Commands I will need to know in production

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.

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
[email protected]

Alpha B. wrote:

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

One day, perhaps.

:slight_smile: 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. :smiley:

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
[email protected]

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

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,

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs