make precompileを実行したときにでてきたエラー
bundle exec rails assets:precompile RAILS_ENV=development
で置き換えられています。
![](https://i0.wp.com/manetaro.website/wp-content/uploads/2023/11/RailsAWSデプロイ-AWS-Cloud9-Google-Chrome-2023_11_29-19_26_34.png?resize=611%2C576&ssl=1)
make precompileは、
bundle exec rails assets:precompile RAILS_ENV=development
で置き換えられています。
原因
Docker環境内でRubyの標準ライブラリとgemバージョンの net-protocol
が競合している。
解決方法
Gemfileに、
gem 'net-http'
を記述することで、net-protocol
の競合を解決できる。
参考にした記事
![](https://i0.wp.com/manetaro.website/wp-content/uploads/cocoon-resources/blog-card-cache/748742c93b878fdf625ef8a87ffb7ee9.png?resize=160%2C90&ssl=1)
Net::ProtocRetryErrorのエラーをなくすためにnet-httpのgemを追加する
コメント