繁体   English   中英

推送到Heroku错误

[英]Pushing to Heroku Error

我知道这是很常见的情况,但是我已经搜索过google / stackoverflow,但都找不到合适的解决方案。 我有这个RoR应用程式,正尝试推送至heroku。 首先,我创建了gentle-savannah-1528 (dyno?),我正在尝试git push heroku master但是随后出现此错误:

emmanuels-imac:kal siaW$ git push heroku master
fatal: 'heroku' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
emmanuels-imac:kal siaW$ 

我尝试了许多解决方案,但没有任何效果。 有人可以帮我节省一些时间。 我不能再花时间试图找出如何推向Heroku了。

我已经做了:

emmanuels-imac:kal siaW$ heroku git:remote -a gentle-savannah-1528
emmanuels-imac:kal siaW$ git push heroku master
fatal: 'heroku' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
emmanuels-imac:kal siaW$ 

听起来好像您还没有为Heroku创建remote

按照以下说明进行操作 ,确保已完成:

heroku git:remote -a gentle-savannah-1528

然后尝试:

git push heroku master

该错误显示“请确保您具有正确的访问权限”。 您可能需要将公共密钥上传到Heroku。 只需在终端中输入以下内容:

heroku keys:add ~/.ssh/id_rsa.pub

Heroku网站上的此页面介绍了如果您没有创建一个页面的方法

暂无
暂无

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

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