当我尝试使用git push heroku master
在heroku上推送python项目时
命令我得到了这样的错误。
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
如何解决此错误?
答案 0 :(得分:1)
您必须通过运行function OnSuccessNews(response) {
var news = response.d;
$(news).each(function (item) {
var container = $("<div class=\"item container\"></div>");
container.append("<h4>" + news[item].Title + "</h4>");
container.append("<p>" + news[item].Text + "</p>");
container.append("<div class=\"post\"></div>");
$("#notizie").append(container);
});
$('.item').first().addClass('active');
$('#carouselNews').carousel();
}
将ssh密钥添加到heroku。然后Heroku可以验证您并允许访问heroku上的存储库。更多相关信息:https://devcenter.heroku.com/articles/keys