【发布时间】:2015-01-14 19:52:59
【问题描述】:
我正在尝试使用 mina 部署我的应用程序。 当它开始运行迁移时,我收到了这个错误:
-----> Migrating database
rake aborted!
Devise.secret_key was not set. Please add the following to your Devise initializer:
config.secret_key = 'key here.......'
Please ensure you restarted your application after installing Devise or setting the key.
.........
在我的设计初始化程序中,我有 config.secret_key = ENV["SECRET_KEY_BASE"]
如何将此密钥添加到我的应用程序? secret_key_base 和 secret_key 有区别吗?
这可能很愚蠢,但我不知道如何添加此密钥。
本地一切正常
ps 我正在使用 figaro
【问题讨论】:
标签: ruby-on-rails devise mina