2011-02-14 18:28:51 +00:00
|
|
|
# Be sure to restart your server when you modify this file.
|
|
|
|
|
2013-12-02 21:47:02 +00:00
|
|
|
# Your secret key is used for verifying the integrity of signed cookies.
|
2011-02-14 18:28:51 +00:00
|
|
|
# If you change this key, all old signed cookies will become invalid!
|
2013-12-02 21:47:02 +00:00
|
|
|
|
2011-02-14 18:28:51 +00:00
|
|
|
# Make sure the secret is at least 30 characters and all random,
|
|
|
|
# no regular words or you'll be exposed to dictionary attacks.
|
2013-12-02 21:47:02 +00:00
|
|
|
# You can use `rake secret` to generate a secure secret key.
|
|
|
|
|
2013-01-12 02:03:35 +00:00
|
|
|
if Rails.env.production? && ENV['SECRET_TOKEN'].blank?
|
2016-02-04 19:48:23 +00:00
|
|
|
raise 'The SECRET_TOKEN environment variable is not set.\n
|
2013-12-02 21:47:02 +00:00
|
|
|
To generate it, run "rake secret", then set it with "heroku config:set SECRET_TOKEN=the_token_you_generated"'
|
2013-01-12 02:03:35 +00:00
|
|
|
end
|
|
|
|
|
2013-12-02 21:47:02 +00:00
|
|
|
# Make sure your secret_key_base is kept private
|
|
|
|
# if you're sharing your code publicly.
|
|
|
|
AdoptAThing::Application.config.secret_key_base = ENV['SECRET_TOKEN'] || 'cfc501e00aeb29750826f86459cccec45ea2c7dd84e8fc0b800dced308be95059b51c3402d215d267cfc09f03bd6f1f531a65456212b3531ef2b10cf605dc39a'
|