diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-11-10 13:50:16 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-11-10 13:50:16 +0900 |
commit | 07ec810ac0c1425918220921a335ae8a20f82763 (patch) | |
tree | cdc61df34a9a5573961a1ec4a535509f83c45f51 /guides/source/command_line.md | |
parent | 8c7967c9b916fe625e7ce10591b101abde3be4f5 (diff) | |
download | rails-07ec810ac0c1425918220921a335ae8a20f82763.tar.gz rails-07ec810ac0c1425918220921a335ae8a20f82763.tar.bz2 rails-07ec810ac0c1425918220921a335ae8a20f82763.zip |
Use `-e` option to specify the environment in console command [ci skip]
Passing the environment's name as a regular argument is deprecated
in 48b249927375465a7102acc71c2dfb8d49af8309.
Diffstat (limited to 'guides/source/command_line.md')
-rw-r--r-- | guides/source/command_line.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/command_line.md b/guides/source/command_line.md index 88c559921c..648645af7c 100644 --- a/guides/source/command_line.md +++ b/guides/source/command_line.md @@ -290,7 +290,7 @@ INFO: You can also use the alias "c" to invoke the console: `rails c`. You can specify the environment in which the `console` command should operate. ```bash -$ bin/rails console staging +$ bin/rails console -e staging ``` If you wish to test out some code without changing any data, you can do that by invoking `rails console --sandbox`. |