diff options
author | Adrien Lamothe <adrien@adriensdomain.com> | 2014-04-08 17:59:14 -0700 |
---|---|---|
committer | Adrien Lamothe <adrien@adriensdomain.com> | 2014-04-08 21:18:26 -0700 |
commit | a4e55872365252c7245b09764811d4a28b4084b6 (patch) | |
tree | 8e00f71bd4bdec79fb3f6d47dedc59970b980fc8 /guides | |
parent | 30a41e76f6e21b3dbaf502331066d922b24304bf (diff) | |
download | rails-a4e55872365252c7245b09764811d4a28b4084b6.tar.gz rails-a4e55872365252c7245b09764811d4a28b4084b6.tar.bz2 rails-a4e55872365252c7245b09764811d4a28b4084b6.zip |
Expand explanation of how to set secrets.yml. [ci skip]
Diffstat (limited to 'guides')
-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 88c9981dbb..0b869deafa 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -79,12 +79,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. |