From a87c24174b81b50e4c1883196cc2885c62e863b0 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 2 Jul 2017 21:51:52 -0400 Subject: Added devise secret key env --- config/initializers/devise.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config') diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index f85c0a6..822cec4 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -7,6 +7,9 @@ Devise.setup do |config| # Devise will use the `secret_key_base` as its `secret_key` # by default. You can change it below and use your own secret key. # config.secret_key = 'f85d289a63b03808f899604ae6f3b1ba93430a8a7e9a5c0ee817471e4d4e201f000e8d42386392d4c24add7b4e2f0e011ea491c1febb57b37301e63b67f0ed60' + if Rails.env == 'production' + config.secret_key = ENV['DEVISE_SECRET_KEY'] + end # ==> Mailer Configuration # Configure the e-mail address which will be shown in Devise::Mailer, -- cgit 1.4.1