繁体   English   中英

找不到Heroku存储库的URL

[英]Can't find URL for Heroku repository

我一直在关注https://github.com/opentok/learning-opentok-ios/tree/basics.step-7,以尝试使用OpenTok SDK在iOS上运行视频应用程序。

我已经使用https://dashboard.heroku.com/new?template=https%3A%2F%2Fgithub.com%2Fopentok%2Flearning-opentok-php&button-url=https%3A%2F%发布了一个名为dongu的应用程序2Fgithub.com%2Fopentok%2Flearning-opentok-php 我以为git URL是git@heroku.com:dongu.git,但是它不起作用。

Error log:

News-MacBook-Pro:Dongu michaelnares$ git remote add heroku git@heroku.com:dongu.git
News-MacBook-Pro:Dongu michaelnares$ git add --all
News-MacBook-Pro:Dongu michaelnares$ git push heroku master
error: src refspec master does not match any.
error: failed to push some refs to 'git@heroku.com:dongu.git'
News-MacBook-Pro:Dongu michaelnares$ git heroku git:remote -a dongu
git: 'heroku' is not a git command. See 'git --help'.

Did you mean this?
    checkout

我想要做的就是将一个简单的HTML文件添加到我的Heroku应用程序中,但是我找不到要推送到其中的URL。 有什么办法找出来吗?

尝试

heroku git:远程-dongu

然后

git push heroku主

它可能还不是git repo。 首先运行git init

只需按照https://dashboard.heroku.com/apps/dongu/deploy/heroku-git中的说明进行操作即可,而无需我知道远程URL,希望该方法对遇到此问题的其他人很有用。

暂无
暂无

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

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