相关疑难解决方法(0)

Rails配置密钥库返回nil

运行rails控制台时,我Rails.configuration.secret_key_base在开发环境中的调用会保持返回nil.

#secrets.yml

development:
  secret_key_base: the-long-secret-generated-by-rake-secret

#...other configs, a call while running heroku rails c in production also returns nil
Run Code Online (Sandbox Code Playgroud)

怎么会这样?运行导轨4.1.0

ruby-on-rails heroku

6
推荐指数
1
解决办法
3605
查看次数

标签 统计

heroku ×1

ruby-on-rails ×1