[英]git push heroku master - FAIL
I added an SSH key to Github for committing my code. 我向GitHub添加了SSH密钥以提交我的代码。 Everything worked perfectly.
一切正常。 Then I tried to commit to Heroku to get my app live using the following steps:
然后,我尝试通过以下步骤致力于Heroku来使我的应用生效:
[omrails]$heroku keys:add
# Found the following SSH public keys:
# 1) github_rsa.pub 2) id_rsa.pub
# Which would you like to use with your Heroku account? 2
# Uploading SSH public key /Users/jackburum/.ssh/id_rsa.pub... done
[omrails]$heroku create
# Creating calm-earth-1147... done, stack is cedar
# http://calm-earth-1147.herokuapp.com/ |
# git@heroku.com:calm-earth-1147.git
[omrails]$git push heroku master
# ! Your key with fingerprint *************** is not authorized to access omrails.
# fatal: The remote end hung up unexpectedly
Then I tried clearing the Heroku keys (heroku keys:clear) and adding the keys again... to no avail. 然后我尝试清除Heroku键(heroku keys:clear)并再次添加键...无济于事。 I also changed my SSH key in Github to see if that was the problem.
我还更改了Github中的SSH密钥,看是否是问题所在。 What can I do differently?
我可以做些什么?
I also struggled with SSH keys, specially due to my multiple accounts on Heroku. 我还为SSH密钥而苦苦挣扎,特别是由于我在Heroku上有多个帐户。 Then I found this https://github.com/ddollar/heroku-accounts which does an amazing job helping you use multiple accounts on Heroku.
然后我发现了这个https://github.com/ddollar/heroku-accounts ,它在帮助您在Heroku上使用多个帐户方面做得非常出色。
Right now your I will guess that 'heroku' origin is pointing at an incorrect Heroku application. 现在,您可能会猜到“ heroku”来源指向错误的Heroku应用程序。 To fix this perform the following.
要解决此问题,请执行以下操作。
heroku
origin - git remote rm heroku
heroku
起源git remote rm heroku
heroku
origin pointing at calm-earth-1147 app - git remote add heroku git@heroku.com: calm-earth-1147.git
heroku
起源git remote add heroku git@heroku.com: calm-earth-1147.git
git remote -v
git remote -v
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.