aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/upgrading_ruby_on_rails.md
diff options
context:
space:
mode:
authorAdrien Lamothe <adrien@adriensdomain.com>2014-04-08 17:59:14 -0700
committerAdrien Lamothe <adrien@adriensdomain.com>2014-04-08 21:18:26 -0700
commita4e55872365252c7245b09764811d4a28b4084b6 (patch)
tree8e00f71bd4bdec79fb3f6d47dedc59970b980fc8 /guides/source/upgrading_ruby_on_rails.md
parent30a41e76f6e21b3dbaf502331066d922b24304bf (diff)
downloadrails-a4e55872365252c7245b09764811d4a28b4084b6.tar.gz
rails-a4e55872365252c7245b09764811d4a28b4084b6.tar.bz2
rails-a4e55872365252c7245b09764811d4a28b4084b6.zip
Expand explanation of how to set secrets.yml. [ci skip]
Diffstat (limited to 'guides/source/upgrading_ruby_on_rails.md')
-rw-r--r--guides/source/upgrading_ruby_on_rails.md11
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.