Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/52.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上部署Rails应用程序_Ruby On Rails_Git_Heroku_Git Push - Fatal编程技术网

Ruby on rails 无法在Heroku上部署Rails应用程序

Ruby on rails 无法在Heroku上部署Rails应用程序,ruby-on-rails,git,heroku,git-push,Ruby On Rails,Git,Heroku,Git Push,我已经构建了一个Rails应用程序,我想在heroku上部署它。我可以在本地计算机上运行web应用程序。 当我键入命令:git push heroku master时,我收到以下错误消息: git push heroku master ssh: connect to host heruko.com port 22: Connection refused fatal: Could not read from remote repository. Please make sure you have

我已经构建了一个Rails应用程序,我想在heroku上部署它。我可以在本地计算机上运行web应用程序。 当我键入命令:
git push heroku master
时,我收到以下错误消息:

git push heroku master
ssh: connect to host heruko.com port 22: Connection refused
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
这似乎是一个连接错误。所以我试着:

sh -v git@heroku.com
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: Connecting to heroku.com [50.19.85.156] port 22.
debug1: Connection established.
debug1: identity file /Users/myname/.ssh/id_rsa type 1
debug1: identity file /Users/myname/.ssh/id_rsa-cert type -1
debug1: identity file /Users/myname/.ssh/id_dsa type -1
debug1: identity file /Users/myname/.ssh/id_dsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2
debug1: Remote protocol version 2.0, remote software version endosome
debug1: no match: endosome
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-sha1 none
debug1: kex: client->server aes128-ctr hmac-sha1 none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Server host key: RSA 8b:48:5e:67:0e:c9:16:47:32:f2:87:0c:1f:c8:60:ad
debug1: Host 'heroku.com' is known and matches the RSA host key.
debug1: Found key in /Users/myname/.ssh/known_hosts:6
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/myname/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
Authenticated to heroku.com ([50.19.85.156]:22).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = fr_FR.UTF-8
PTY allocation request failed on channel 0
shell request failed on channel 0
在这里我可以看到身份验证是成功的。我不明白为什么我不能推动heroku并部署我的应用程序

这里是遥控器: git远程-v

heroku  git@heruko.com:aqueous-plateau-17182.git (fetch)
heroku  git@heruko.com:aqueous-plateau-17182.git (push)
origin  git@bitbucket.org:pracede/hubapp.git (fetch)
origin  git@bitbucket.org:pracede/hubapp.git (push)

你有什么想法或建议吗?

你的git遥控器有一个打字错误:

git@heruko.com:水-平台-17182.git


这是heroku,而不是heruko:)

你给heroku添加了ssh密钥吗?@Pracede-运行heroku密钥,检查添加的密钥是否正确。还可以检查作为远程
git remote-v
@LHH添加的ssh密钥添加的heroku git存储库。@VenkatCh如何查看添加的密钥是否正确。我的测试是尝试与ssh连接,身份验证成功