将新创建的master.key文件从我的开发服务器复制到生产服务器并运行
cap production deploy
我收到此错误消息:
00:13 deploy:assets:precompile
01 $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile
01 rake aborted!
01 ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `bin/rails credentials:edit`
解决此问题的下一个最佳步骤是什么?
1条答案
按热度按时间hpcdzsge1#
为生产环境设置密钥secret_key_base。应该已经为开发环境设置了此密钥。您还需要为生产环境设置此密钥。您可以通过运行命令
bin/rails credentials:edit
来完成此操作。