由于依赖私有仓库,无法在 Heroku 上部署 Elixir 应用程序
Failing to deploy Elixir application on Heroku because of dependency on a private repo
我正在使用 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
,但我仍然遇到同样的错误。
Elixir webpack 不包含处理私有 GitHub 依赖项的步骤。您可以包含此构建包以相应地设置 GitHub:https://github.com/timshadel/heroku-buildpack-github-netrc
我正在使用 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
,但我仍然遇到同样的错误。
Elixir webpack 不包含处理私有 GitHub 依赖项的步骤。您可以包含此构建包以相应地设置 GitHub:https://github.com/timshadel/heroku-buildpack-github-netrc