diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-04-09 13:05:44 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-04-09 13:05:44 -0300 |
commit | 040a1dbb11495490ca3f7c882cda1815316e7256 (patch) | |
tree | 1f4a2aea91f3519f0bef2d91a193c7ebc31f0f2b /guides/source | |
parent | 7cf46ad8897a468fb55e87ebab4629a34177a596 (diff) | |
parent | a4e55872365252c7245b09764811d4a28b4084b6 (diff) | |
download | rails-040a1dbb11495490ca3f7c882cda1815316e7256.tar.gz rails-040a1dbb11495490ca3f7c882cda1815316e7256.tar.bz2 rails-040a1dbb11495490ca3f7c882cda1815316e7256.zip |
Merge pull request #14654 from Alamoz/secret_key
Expand explanation of how to set secrets.yml.
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/upgrading_ruby_on_rails.md | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index 1e5875a579..9fbe3313d2 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -77,12 +77,15 @@ secrets, you need to: secret_key_base: production: - secret_key_base: + secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> ``` -2. Copy the existing `secret_key_base` from the `secret_token.rb` initializer to - `secrets.yml` under the `production` section. - +2. Use your existing `secret_key_base` from the `secret_token.rb` initializer to + set the SECRET_KEY_BASE environment variable for whichever users run the Rails + app in production mode. Alternately, you can simply copy the existing + `secret_key_base` from the `secret_token.rb` initializer to `secrets.yml` + under the `production` section, replacing '<%= ENV["SECRET_KEY_BASE"] %>'. + 3. Remove the `secret_token.rb` initializer. 4. Use `rake secret` to generate new keys for the `development` and `test` sections. |