aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/configuring.md
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2013-01-21 21:14:42 +0100
committerXavier Noria <fxn@hashref.com>2013-01-21 21:14:50 +0100
commitf667f0f7ee63a14e600abb0a32446193794c28f1 (patch)
treeeac9e4fffeb680619ffb6f149c21f11669e2ccfe /guides/source/configuring.md
parentd812ad8aa287edb3d8d222861e78203f8e6dfecc (diff)
downloadrails-f667f0f7ee63a14e600abb0a32446193794c28f1.tar.gz
rails-f667f0f7ee63a14e600abb0a32446193794c28f1.tar.bz2
rails-f667f0f7ee63a14e600abb0a32446193794c28f1.zip
copy-edits 7e6e4f2 [ci skip]
Capitalization in the title of the section, enumerates the environments in the usual order, adds a paragraph, and tries to use less "you"s.
Diffstat (limited to 'guides/source/configuring.md')
-rw-r--r--guides/source/configuring.md8
1 files changed, 5 insertions, 3 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index c18cd08264..fc1d0d7530 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -552,11 +552,13 @@ development:
Change the username and password in the `development` section as appropriate.
-### Creating Rails environments
+### Creating Rails Environments
-By default Rails ships with three environments (production, development and test). While these are sufficient for most use cases, there are circumstances when you want more environments. Imagine you have a server, which mirrors the production environment but is only used for testing. You can create a separate environment for this server by creating a file called `config/environments/staging.rb`. This will create a new environment called "staging". You can use the contents of any existing file in `config/environments` as a starting point and make the necessary changes from there.
+By default Rails ships with three environments: "development", "test", and "production". While these are sufficient for most use cases, there are circumstances when you want more environments.
-After you created the environment file you can now start a server with `rails server -e staging` or a console with `rails console staging`
+Imagine you have a server which mirrors the production environment but is only used for testing. Such a server is commonly called a "staging server". To define an environment called "staging" for this server just by create a file called `config/environments/staging.rb`. Please use the contents of any existing file in `config/environments` as a starting point and make the necessary changes from there.
+
+That environment is no different than the default ones, start a server with `rails server -e staging`, a console with `rails console staging`, `Rails.env.staging?` works, etc.
Rails Environment Settings