create secrets.yml per rails upgrade instructions. It uses the secret key from site.yml

This commit is contained in:
Reinier Balt 2014-09-22 10:28:33 +02:00
parent 296cd8e152
commit 1d242981d4
3 changed files with 11 additions and 15 deletions

View file

@ -1,12 +0,0 @@
# 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 your secret_key_base is kept private
# if you're sharing your code publicly.
Rails.application.config.secret_key_base = SITE_CONFIG["secret_token"] || SecureRandom.hex(64)