lib/rails/generators/rails/app/templates/config/secrets.yml in railties-5.0.7.2 vs lib/rails/generators/rails/app/templates/config/secrets.yml in railties-5.1.0.beta1
- old
+ new
@@ -8,15 +8,25 @@
# You can use `rails secret` to generate a secure secret key.
# Make sure the secrets in this file are kept private
# if you're sharing your code publicly.
+# Shared secrets are available across all environments.
+
+shared:
+ api_key: 123
+
+# Environmental secrets are only available for that specific environment.
+
development:
secret_key_base: <%= app_secret %>
test:
secret_key_base: <%= app_secret %>
-# Do not keep production secrets in the repository,
-# instead read values from the environment.
+# Do not keep production secrets in the unencrypted secrets file.
+# Instead, either read values from the environment.
+# Or, use `bin/rails secrets:setup` to configure encrypted secrets
+# and move the `production:` environment over there.
+
production:
secret_key_base: <%%= ENV["SECRET_KEY_BASE"] %>