diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-11-10 17:13:49 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-10 17:13:49 +0900 |
commit | fc2abdb23982fa838c55723a430a4cd2c9894ce9 (patch) | |
tree | 4ef3aa80dcbe18deef84fb7c8331544b750e6501 /guides/source/configuring.md | |
parent | 63e121326e455069daebdef954f9ea1eaf8c1a5c (diff) | |
parent | 07ec810ac0c1425918220921a335ae8a20f82763 (diff) | |
download | rails-fc2abdb23982fa838c55723a430a4cd2c9894ce9.tar.gz rails-fc2abdb23982fa838c55723a430a4cd2c9894ce9.tar.bz2 rails-fc2abdb23982fa838c55723a430a4cd2c9894ce9.zip |
Merge pull request #31113 from y-yagi/use_e_option_to_specify_environment_in_console_command
Use `-e` option to specify the environment in console command [ci skip]
Diffstat (limited to 'guides/source/configuring.md')
-rw-r--r-- | guides/source/configuring.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md index 7a32607eb7..2d03f0a61e 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -973,7 +973,7 @@ By default Rails ships with three environments: "development", "test", and "prod 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 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. +That environment is no different than the default ones, start a server with `rails server -e staging`, a console with `rails console -e staging`, `Rails.env.staging?` works, etc. ### Deploy to a subdirectory (relative url root) |