2016-03-09 48 views
0
部署Rails應用程序

我已經建立了,我想在Heroku上部署Rails應用程序。我可以在本地機器上運行Web應用程序。 當我鍵入命令:git push heroku master我收到以下錯誤信息:不能在Heroku

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 [email protected] 
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 [email protected]:aqueous-plateau-17182.git (fetch) 
heroku [email protected]:aqueous-plateau-17182.git (push) 
origin [email protected]:pracede/hubapp.git (fetch) 
origin [email protected]:pracede/hubapp.git (push) 

你有一個想法或建議?

+0

有你添加ssh密鑰到heroku? – LHH

+0

@Pracede - 運行'Heroku的keys'和檢查添加鍵是否正確。並檢查添加爲遠程'git的Heroku的git倉庫遠程-v' –

+0

@LHH我添加SSH密鑰。 – Pracede

回答

0

您的git的遙控器一個錯字:

[email protected]:水 - 高原17182.git

heroku,不heruko :)