Devise Secret Key was not set

前端 未结 16 1226
别那么骄傲
别那么骄傲 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:30

    I cloned my repository onto a new machine from git. The

    config/secrets.yml 
    

    file was on my .gitignore list, so that file didn't exist, and Devise doesn't create the file.

    I added the file, then re-ran

    rails generate devise MODEL
    

    and it worked.

提交回复
热议问题