我的前端有一个宝石(页面主题)我可以通过GitHub访问私有宝石。它适用于本地,但是当我部署到Heroku时,这是我收到的错误
Fetching https://github.com/revoxltd/pages-rails.git
fatal: could not read Username for 'https://github.com': No such device or address
Retrying `git clone 'https://github.com/revoxltd/pages-rails.git'
很明显,Heroku没有权限阅读此内容,我的问题是如何解决这个问题?
谢谢!
答案 0 :(得分:0)
看看这是否有帮助:https://medium.com/@frodsan/installing-a-gem-from-a-private-github-repo-heroku-a895073ae7d
需要注意的一点是,heroku密钥与任何github密钥是分开的,因此您可能需要对它们进行两次配置