简体   繁体   English

无法将Rails应用程序部署到Heroku

[英]Trouble Deploying Rails App To Heroku

Below is are the steps I tried to deploy my rails app to heroku. 以下是我尝试将Rails应用程序部署到heroku的步骤。 However I'm getting "Your key with fingerprint is not authorized to access" my application. 但是,我的应用程序收到“您的带有指纹的密钥无权访问”。

  1. Deleted all existing keys from ~/.ssh 从〜/ .ssh删除所有现有键
  2. $ heroku keys:clear $ heroku键:清除
  3. $ heroku create lunch-tr $ heroku创建午餐tr
  4. Enter your Heroku credentials. 输入您的Heroku凭据。
  5. Email: adam.aahrens@gmail.com 电子邮件:adam.aahrens@gmail.com
  6. Password (typing will be hidden): 密码(输入将被隐藏):
  7. Could not find an existing public key. 找不到现有的公钥。
  8. Would you like to generate one? 您想生成一个吗? [Yn] Y [Yn] Y
  9. Generating new SSH public key. 生成新的SSH公钥。
  10. Uploading SSH public key /.ssh/id_rsa.pub... done 上载SSH公钥/.ssh/id_rsa.pub ...
  11. Creating lunch-tr... done, stack is cedar 创建午餐tr ...完成,堆栈是雪松
  12. http://lunch-tr.herokuapp.com/ | http://lunch-tr.herokuapp.com/ | git@heroku.com:lunch-tr.git Git remote heroku added git@heroku.com:lunch-tr.git添加了Git远程heroku
  13. $ git remote -v $ git remote -v
  14. heroku git@heroku.com:lunch-tr.git (fetch) heroku git@heroku.com:lunch-tr.git (push) heroku git@heroku.com:lunch-tr.git(获取)heroku git@heroku.com:lunch-tr.git(推送)
  15. $ git push heroku master $ git push heroku master

    ! Your key with fingerprint 2f:0b:2c:e9:95:b4:52:af:dc:db:9c:57:e3:f2:57:7f is not authorized to access lunch-tr. 您的指纹为2f:0b:2c:e9:95:b4:52:af:dc:db:9c:57:e3:f2:57:7f的密钥无权访问Lunch-tr。 fatal: The remote end hung up unexpectedly 致命:远端意外挂断

Not sure what else I should try I'm running out of ideas. 不知道还有什么我应该尝试的想法用完了。 Thanks for any suggestions 感谢您的任何建议

尝试ssh-add命令,这会将私钥身份添加到身份验证代理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM