diff options
author | Yuji Yaginuma <yuuji.yaginuma@gmail.com> | 2018-09-20 20:37:29 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-20 20:37:29 +0900 |
commit | 3cac5fe94f0f81b4263cfa03d4822c05a55eb49c (patch) | |
tree | 3f82a00cfb611bf47f01027e693a5cdbc358601c /railties/lib/rails/commands/credentials/USAGE | |
parent | 2487a379869648fd3e9a2a27be6b28e7a1aab98a (diff) | |
parent | b4b70ef2bfd922723aa02578d3feba887f5249dc (diff) | |
download | rails-3cac5fe94f0f81b4263cfa03d4822c05a55eb49c.tar.gz rails-3cac5fe94f0f81b4263cfa03d4822c05a55eb49c.tar.bz2 rails-3cac5fe94f0f81b4263cfa03d4822c05a55eb49c.zip |
Merge pull request #33928 from freeletics/fix-key-env
Fixed to RAILS_MASTER_KEY as a default env key for decrypting.
Diffstat (limited to 'railties/lib/rails/commands/credentials/USAGE')
-rw-r--r-- | railties/lib/rails/commands/credentials/USAGE | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/credentials/USAGE b/railties/lib/rails/commands/credentials/USAGE index 513afcbc78..6b33d1ab74 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_PRODUCTION_KEY"]` +`config/credentials/production.yml.enc` that can be decrypted using master key taken from `ENV["RAILS_MASTER_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`. |