aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-09-20 11:08:18 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-09-20 11:08:18 +0900
commitd69b04de0ff33237209afea6f6cac3ab27934908 (patch)
treeaefa7963aba6b0244e940bc847ce08a2c45bea25 /railties/lib/rails/commands
parent12c2dab41b86331c155c72a9c003826ea487a079 (diff)
downloadrails-d69b04de0ff33237209afea6f6cac3ab27934908.tar.gz
rails-d69b04de0ff33237209afea6f6cac3ab27934908.tar.bz2
rails-d69b04de0ff33237209afea6f6cac3ab27934908.zip
Fix env name for master key
When using environment specific credentials, `RAILS_MASTER_KEY` is not used.
Diffstat (limited to 'railties/lib/rails/commands')
-rw-r--r--railties/lib/rails/commands/credentials/USAGE2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/credentials/USAGE b/railties/lib/rails/commands/credentials/USAGE
index 6b33d1ab74..513afcbc78 100644
--- a/railties/lib/rails/commands/credentials/USAGE
+++ b/railties/lib/rails/commands/credentials/USAGE
@@ -43,7 +43,7 @@ from leaking.
It is possible to have credentials for each environment. If the file for current environment exists it will take
precedence over `config/credentials.yml.enc`, thus for `production` environment first look for
-`config/credentials/production.yml.enc` that can be decrypted using master key taken from `ENV["RAILS_MASTER_KEY"]`
+`config/credentials/production.yml.enc` that can be decrypted using master key taken from `ENV["RAILS_PRODUCTION_KEY"]`
or stored in `config/credentials/production.key`.
To edit given file use command `rails credentials:edit --environment production`
Default paths can be overwritten by setting `config.credentials.content_path` and `config.credentials.key_path`.