通过代理服务器推送到heroku [英] Push to heroku through Proxy server

查看:130
本文介绍了通过代理服务器推送到heroku的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了Heroku并创建了一个帐户,但由于我大学的代理服务器无法将代码推送到我的应用程序上。



我尝试使用解决方案在这个线程给出,我读了< href =http://tachang.tumblr.com/post/22265579539/using-github-through-draconian-proxies-windows-and =nofollow noreferrer>这个关于让github工作的页面通过代理,但我仍然得到一个错误,即:

pre $ git push heroku origin b $ b ssh_exchange_identification:由远程主机关闭
致命:远程端意外挂起

$ git remote -v
heroku git_heroku:secret-hamlet-7718.git(fetch)
heroku git_heroku:secret-hamlet-7718.git(推送)
原产地https://github.com/saasbook/hw2_rottenpotatoes.git(提取)
原产地https://github.com/saasbook/hw2_rottenpotatoes .git(推送)

我的.ssh / config文件包含:

  ProxyCommand corkscrew [proxy_address] [proxy_port]%h%p 

主机git_heroku
主机名heroku.com
用户git
端口443

.git / config文件的相关部分:

  [remoteheroku] 
url = git_heroku:secret-hamlet-7718.git
fetch = + refs / heads / *:refs / remotes / heroku / *

我非常肯定我错过了一些东西。我希望有人能指出什么。

解决方案

是否更改您的 [remoteheroku] 给这个帮助吗?

  [remoteheroku] 
url = git @ heroku:secret -hamlet-7718.git
fetch = + refs / heads / *:refs / remotes / heroku / *


I have installed Heroku and set up an account but cannot push code for my app onto it, due to a proxy in my university.

I tried using the solution given in this thread and I read this page about getting github to work through a proxy, but I still get an error, which is:

$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)

My .ssh/config file contains:

ProxyCommand corkscrew [proxy_address] [proxy_port] %h %p

Host git_heroku
  Hostname heroku.com
  User git
  Port 443

The relevant portion of .git/config file:

[remote "heroku"]
    url = git_heroku:secret-hamlet-7718.git
    fetch = +refs/heads/*:refs/remotes/heroku/*

I am pretty sure I have missed something. I hope someone can point out what.

解决方案

Does changing your [remote "heroku"] to this help?

[remote "heroku"]
    url = git@heroku:secret-hamlet-7718.git
    fetch = +refs/heads/*:refs/remotes/heroku/*

这篇关于通过代理服务器推送到heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆