gpt4 book ai didi

rails-activestorage - Rails 和 active_storage : Cannot load `Rails.config.active_storage.service` : (RuntimeError) Missing service adapter for "S3"

转载 作者:行者123 更新时间:2023-12-03 14:00:12 27 4
gpt4 key购买 nike

当所有配置都正确时,我在控制台中看到此错误

Cannot load `Rails.config.active_storage.service`: (RuntimeError) Missing service adapter for "S3"

最佳答案

文档中没有说清楚,我必须添加 gem aws-sdk-s3到我的 Gemfile

gem "aws-sdk-s3", require: false

关于rails-activestorage - Rails 和 active_storage : Cannot load `Rails.config.active_storage.service` : (RuntimeError) Missing service adapter for "S3",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61439902/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com