2012-05-17 53 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”