Generating a new secrets.yml file

后端 未结 2 1710
萌比男神i
萌比男神i 2021-02-20 06:36

I\'m trying to clone a rails repository from github, but it doesn\'t have a secrets.yml file. When I try to run the app from rails server, I get the error

Missing

2条回答
  •  执念已碎
    2021-02-20 07:23

    In Rails 5 you can simply type.

    rails secret
    

    This will generate a new key for you. Just copy the key and put it in your secrets.yml file

    development:
      secret_key_base: 
    

提交回复
热议问题