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

8
config/secrets.yml Normal file
View file

@ -0,0 +1,8 @@
development:
secret_key_base: <%= SITE_CONFIG["secret_token"] || SecureRandom.hex(64) %>
test:
secret_key_base: <%= SITE_CONFIG["secret_token"] || SecureRandom.hex(64) %>
production:
secret_key_base: <%= SITE_CONFIG["secret_token"] || SecureRandom.hex(64) %>