2012-05-17 190 views
2

我想部署一個Django應用程序到Heroku,但是當我運行以下命令時出現這個奇怪的錯誤。Heroku部署Django應用程序失敗

任何想法爲什麼發生這種情況?我用Google搜索了一下,但是我沒有找到任何幫助。

[email protected]:~/Desktop/djangos/jobs# git push heroku master 
Warning: Permanently added the RSA host key for IP address '50.19.85.154' to the list of known hosts. 
Permission denied (publickey). 
fatal: The remote end hung up unexpectedly 

在此先感謝您的任何提示/幫助!

+3

你註冊過你的ssh密鑰到Heroku嗎? – eis

回答

3

首先,您應該登錄。

$ heroku login 
Enter your Heroku credentials. 
Email: [email protected] 
Password: 
Could not find an existing public key. 
Would you like to generate one? [Yn] 
Generating new SSH public key. 
Uploading ssh public key /Users/adam/.ssh/id_rsa.pub 

另外,如果你登錄,你應該嘗試「混帳拉Heroku的主」,然後嘗試「混帳推Heroku的主」。

Getting Started

1

驗證SSH密鑰的名稱是否爲「id_rsa」,並且密鑰是您認爲該文件的密鑰,如果可以安全地重新創建密鑰並將其保留爲「id_rsa」