Devise Secret Key was not set

前端 未结 16 1227
别那么骄傲
别那么骄傲 2020-11-27 14:53

I am developing a Rails 4 app using the Active Admin gem for the administration back end. Active Admin in turn uses Devise for user authentication. Now, when I try to deploy

16条回答
  •  春和景丽
    2020-11-27 15:34

    What worked for me on Rails 4.1 and Devise 3.2.4 is in config/initializers/devise.rb:

    config.secret_key = ENV['DEVISE_SECRET_KEY'] if Rails.env.production?
    

提交回复
热议问题