我正在使用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
,但仍然出现相同的错误。
答案 0 :(得分:3)
Elixir Webpack不包括处理私有GitHub依赖项的步骤。尽管可以相应地设置GitHub,也可以包含此buildpack:https://github.com/timshadel/heroku-buildpack-github-netrc