我简直无法忘记这个信息:
Missing `secret_key_base` for 'production' environment, set this string with `rails credentials:edit` (ArgumentError)
我有Rails 5.2.0,并运行了
EDITOR=vim rails credentials:edit
里面:
production:
secret_key_base: xxxxxxxxxxxxxxxxxxxxxxx
保存并在终端中:
RAILS_ENV=production rails c
我错过什么了吗?我重新启动了服务器,遇到了同样的问题,但在开发模式下没有问题.