Skip to content

Commit

Permalink
Rails 4.1 requires secrets.yml instead of initializers/secret_token.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda authored and mghaught committed Jul 1, 2014
1 parent bca6aeb commit ca16f19
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
12 changes: 0 additions & 12 deletions config/initializers/secret_token.rb

This file was deleted.

22 changes: 22 additions & 0 deletions config/secrets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Be sure to restart your server when you modify this file.

# Your secret key is used for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!

# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
# You can use `rake secret` to generate a secure secret key.

# Make sure the secrets in this file are kept private
# if you're sharing your code publicly.

development:
secret_key_base: dacba5fcb3027678ce4d0861361d27d13b68a44f94a553da242e03f40fcb773ba72ac834dd56948b15a98f8c2ddcfe0e51aa0532965606a42b3970f4833ca7d0

test:
secret_key_base: 1de748d8a88b57ce2d2448cee99931c0b247bc34c2077573049ed0973c362feccf16b5ed77cb8ac2ee1a1cdc08184e789262f22749dfa8c8526107bd47bd5536

# Do not keep production secrets in the repository,
# instead read values from the environment.
production:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>

0 comments on commit ca16f19

Please sign in to comment.