我有一个私人存储库,在部署到 Heroku 时我试图访问它。但是,Heroku 不允许我克隆私有存储库,并给出以下错误(正如我所期望的):
Host key verification failed.
fatal: The remote end hung up unexpectedly
Git error: command `git clone
'[email protected] /cdn-cgi/l/email-protection:pr/lm-models.git'
"/tmp/build_3r0z0znww0zda/vendor/bundle/ruby/1.9.1/cache/bundler/git/lm-models-aab025aaadbe07202b16e1db7505ae1726f8723a"
--bare --no-hardlinks` in directory /tmp/build_3r0z0znww0zda has failed.
!
! Failed to install gems via Bundler.
!
! Heroku push rejected, failed to compile Ruby/rails app
我发现了这个,但不想以明文形式显示我的用户名/密码:
将heroku应用程序链接到私人(组织)github存储库 https://stackoverflow.com/questions/13066860/linking-heroku-app-to-a-privateorganization-github-repo
这对我有用:
- 生成一个Github 访问令牌 https://help.github.com/articles/creating-an-access-token-for-command-line-use/
-
在requirements.txt中列出私有模块如下:
git+https://your_user_name:[email protected] /cdn-cgi/l/email-protection/your_company/your_module.git
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)