我在 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 呼叫中,如下所示,但它不起作用。也許我可以強制重用舊版本的法拉第?但我找不到任何來源來嘗試這個。
uj5u.com熱心網友回復:
這可能對這種情況有用
https://github.com/travis-ci/dpl/issues/1247
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/403773.html
標籤:
