【问题标题】:Failing to deploy Elixir application on Heroku because of dependency on a private repo由于依赖私有仓库,无法在 Heroku 上部署 Elixir 应用程序
【发布时间】:2019-06-07 06:23:00
【问题描述】:

我正在使用 heroku 的 buildpack for Elixir,其中一个依赖项因 mix deps.get 而失败,因为它来自私有 Github 存储库。

当我尝试部署时出现此错误:

remote: * Getting my_library (https://github.com/my_organization/my_library.git)
remote: fatal: could not read Username for 'https://github.com': No such device or address
remote: ** (Mix) Command "git --git-dir=.git fetch --force --quiet --progress" failed
remote:  !     Push rejected, failed to compile Elixir app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...

我尝试在 Heroku 的配置变量中添加 GITHUB_API_TOKEN,但仍然遇到同样的错误。

【问题讨论】:

    标签: heroku elixir semaphore-ci


    【解决方案1】:

    Elixir webpack 不包含处理私有 GitHub 依赖项的步骤。您可以包含此 buildpack 以相应地设置 GitHub:https://github.com/timshadel/heroku-buildpack-github-netrc

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-01-09
      • 2023-03-06
      • 2021-06-29
      • 2020-04-07
      • 2021-12-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多