表单: RailsNotes
用户: dreamable
创建日期: 2021-01-13 00:52:58 UTC
更新日期: 2021-01-13 00:52:58 UTC
引用:(Table ID 3, Record ID 13)

标题 :
Rails.application.secrets.secret_key_base is empty in production.
笔记 :

use Rails.application.credentials.secret_key_base

check for details
There are two ways to access secret_key_base:

  1. Rails.application.credentials.secret_key_base
  2. Rails.application.secrets.secret_key_base Rails 5 took the first way by default.

you can change Rails.application.credentials.secret_key_base by rails credentials:edit.

标签: