0

我已经在我的 rails 应用程序中使用了 heroku。我已经回来在应用程序上做更多的工作,但是当我这样做时

git push heroku master

我明白了

fatal: 'heroku' does not appear to be a git repository
fatal: Could not read from remote repository.

git remote -v

origin  git@github.com:x/guidelines.git (fetch)
origin  git@github.com:x/guidelines.git (push)

所以我认为这意味着回购在某处?有什么想法我哪里出错了吗?

4

1 回答 1

1

是的,别担心,一切都很好。

您需要访问 heroku.com 并从应用程序 > 应用程序名称 > 设置页面获取应用程序的 git URL。你正在寻找git@heroku.com:<application-name>.git.

回到你的命令行读取heroku远程通过;

git remote add heroku git@heroku.com:<application-name>.git

然后你就可以推送到heroku遥控器了。

于 2013-06-11T08:55:37.743 回答