heroku - 使用 dpl 在 heroku 上部署不适用于新的 Farady 版本

标签 heroku gitlab-ci faraday

我在 gitlab 上的 CI/CD 使用 dpl 在 heroku 上部署代码。它一直像魅力一样工作,直到新版本的法拉第(我猜这就是原因)被获取。

这是我的 gitlab CI 终端工作时(昨天)的内容:

...
$ dpl --provider=heroku --app=$HEROKU_STAGING_APP --api-key=$HEROKU_API_KEY
Installing deploy dependencies
Successfully installed rendezvous-0.1.3
Successfully installed netrc-0.11.0
Successfully installed multipart-post-2.1.1
Successfully installed faraday-rack-1.0.0
Successfully installed faraday-patron-1.0.0
Successfully installed faraday-net_http_persistent-1.2.0
Successfully installed faraday-net_http-1.0.1
Successfully installed faraday-httpclient-1.0.1
Successfully installed faraday-excon-1.1.0
Successfully installed faraday-em_synchrony-1.0.0
Successfully installed faraday-em_http-1.0.0
Successfully installed faraday-1.8.0
Successfully installed dpl-heroku-1.10.16
13 gems installed
authentication succeeded
checking for app XXX
found app XXX
Preparing deploy
...

这是我今天得到的:

...
$ dpl --provider=heroku --app=$HEROKU_STAGING_APP --api-key=$HEROKU_API_KEY
Installing deploy dependencies
Successfully installed rendezvous-0.1.3
Successfully installed netrc-0.11.0
Successfully installed faraday-2.0.0
Successfully installed dpl-heroku-1.10.16
4 gems installed
Preparing deploy
No stash entries found.
/usr/local/bundle/gems/faraday-2.0.0/lib/faraday/rack_builder.rb:230:in `ensure_adapter!': An attempt to run a request with a Faraday::Connection without adapter has been made. (RuntimeError)
Please set Faraday.default_adapter or provide one when initializing the connection.
...

我尝试将 --skip_cleanup 添加到 dpl 调用 as seen here但它不起作用。也许我可以强制重用旧版本的法拉第?但我找不到任何来源来尝试这个。

最佳答案

这对于本例可能有用

https://github.com/travis-ci/dpl/issues/1247

关于heroku - 使用 dpl 在 heroku 上部署不适用于新的 Farady 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70578474/

相关文章:

web - Heroku Go Web 应用程序崩溃

ruby-on-rails - 如何嵌入Haml的错误::Engine in a web page in production on Heroku

ruby - 直接使用 Rack TryStatic 服务文件?

docker - 使用 docker 进行 gitlab-ci 优化

bash - gitlab-ci 脚本中的用户输入会发生什么

ruby-on-rails - 必须在 Ubuntu 启动时启动 ElasticSearch

git - 无法将一些引用推送到 git@heroku.com :myapp. git

python - Pytest 未从目录中选择所有测试

faraday - 如何使用法拉第捕获 Faraday::Error::ConnectionFailed 异常?

ruby-on-rails - 以法拉第为参数发布图像