Table: RailsNotes
User: dreamable
Created at: 2021-01-13 00:52:58 UTC
Updated at: 2021-01-13 00:52:58 UTC
Reference:(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.

Tag: