我已经安装了Heroku并设置了一个帐户,但由于我大学的代理,我无法将我的应用程序的代码推送到它上面.
我尝试使用此线程中给出的解决方案,我读了这个页面关于让github通过代理工作,但我仍然得到一个错误,即:
$git push heroku origin
ssh_exchange_identification: Connection closed by remote host
fatal: The remote end hung up unexpectedly
$git remote -v
heroku git_heroku:secret-hamlet-7718.git (fetch)
heroku git_heroku:secret-hamlet-7718.git (push)
origin https://github.com/saasbook/hw2_rottenpotatoes.git (fetch)
origin https://github.com/saasbook/hw2_rottenpotatoes.git (push)
Run Code Online (Sandbox Code Playgroud)
我的.ssh/config文件包含:
ProxyCommand corkscrew [proxy_address] [proxy_port] %h %p
Host git_heroku
Hostname heroku.com
User git
Port 443
Run Code Online (Sandbox Code Playgroud)
.git/config文件的相关部分:
[remote "heroku"]
url = git_heroku:secret-hamlet-7718.git
fetch = +refs/heads/*:refs/remotes/heroku/*
Run Code Online (Sandbox Code Playgroud)
我很确定我错过了一些东西.我希望有人可以指出什么.
改变你的[remote "heroku"]这个有帮助吗?
[remote "heroku"]
url = git@heroku:secret-hamlet-7718.git
fetch = +refs/heads/*:refs/remotes/heroku/*
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1046 次 |
| 最近记录: |