Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法将ruby on rails应用程序推送到Heroku-网络问题?_Heroku - Fatal编程技术网

无法将ruby on rails应用程序推送到Heroku-网络问题?

无法将ruby on rails应用程序推送到Heroku-网络问题?,heroku,Heroku,我所在的班级要求我们将ruby on rails应用程序放在Heroku上。他们一步一步地指示我们在Heroku上设置,我也照做了。我可以从命令行登录到heroku,但当我尝试将我的应用程序推送到heroku时,我得到以下信息: Read from socket failed: Connection reset by peer fatal: The remote end hung up unexpectedly 我已经ping了服务器,它工作了。我尝试重新启动,一天后回来,重新创建应用程序,效

我所在的班级要求我们将ruby on rails应用程序放在Heroku上。他们一步一步地指示我们在Heroku上设置,我也照做了。我可以从命令行登录到heroku,但当我尝试将我的应用程序推送到heroku时,我得到以下信息:

Read from socket failed: Connection reset by peer
fatal: The remote end hung up unexpectedly
我已经ping了服务器,它工作了。我尝试重新启动,一天后回来,重新创建应用程序,效果很好。我检查了一下,确定我有Heroku工具带。我花了几个小时搜索谷歌。我还没有找到解决办法

运行
ssh-vvv时mylogin@heroku
我得到了

OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
ssh: Could not resolve hostname heroku: Name or service not known
Warning: Permanently added the RSA host key for IP address '50.19.85.154' to the list of known hosts.
Permission denied (publickey).
运行
ssh时git@heroku.com-T
我得到了

OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
ssh: Could not resolve hostname heroku: Name or service not known
Warning: Permanently added the RSA host key for IP address '50.19.85.154' to the list of known hosts.
Permission denied (publickey).
所以我又试了一次推heroku master,结果得到了

Permission denied (publickey).
fatal: The remote end hung up unexpectedly

有什么想法吗?

尝试使用以下命令进行调试:

ssh -vvv yourlogin@heroku

尝试使用以下命令进行调试:

ssh -vvv yourlogin@heroku

所以我让它工作了!感谢那些作出回应的人——他们让我踏上了解决问题的道路。 这就是我所做的

我运行了
ssh-vvvreneeggallison@gmail.com@heroku给了我

OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
ssh: Could not resolve hostname heroku: Name or service not known
在研究这个错误后,我决定运行
sshgit@heroku.com-T
,收到此信息即为响应:

Warning: Permanently added the RSA host key for IP address '50.19.85.154' to the list of known hosts.
Permission denied (publickey).
这改变了我的错误,错误源于

Read from socket failed: Connection reset by peer
fatal: The remote end hung up unexpectedly

因此,在研究该错误后,我运行了
heroku keys:add~/.ssh/id_rsa.pub
,返回:

Uploading SSH public key /home/renee/.ssh/id_rsa.pub... done
这对我来说似乎很好,我再次运行了
git-push-heroku-master
,并获得了成功。
谢谢大家,祝你们好运,我成功了!感谢那些作出回应的人——他们让我踏上了解决问题的道路。 这就是我所做的

我运行了
ssh-vvvreneeggallison@gmail.com@heroku给了我

OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
ssh: Could not resolve hostname heroku: Name or service not known
在研究这个错误后,我决定运行
sshgit@heroku.com-T
,收到此信息即为响应:

Warning: Permanently added the RSA host key for IP address '50.19.85.154' to the list of known hosts.
Permission denied (publickey).
这改变了我的错误,错误源于

Read from socket failed: Connection reset by peer
fatal: The remote end hung up unexpectedly

因此,在研究该错误后,我运行了
heroku keys:add~/.ssh/id_rsa.pub
,返回:

Uploading SSH public key /home/renee/.ssh/id_rsa.pub... done
这对我来说似乎很好,我再次运行了
git-push-heroku-master
,并获得了成功。
所以,谢谢大家,祝你们好运

你们从
ssh-vvv中得到了什么yourlogin@heroku
。这将向您显示ssh通信期间发生的所有操作,以帮助调试。Scott,我将结果添加到我的帖子中,您从
ssh-vvv中得到了什么yourlogin@heroku
。这将向您显示ssh通信过程中发生的所有操作,以帮助调试。Scott,我在帖子中添加了我的结果