简体   繁体   中英

Can't find URL for Heroku repository

I've been following https://github.com/opentok/learning-opentok-ios/tree/basics.step-7 to try and get a video app to work on iOS using the OpenTok SDK.

I've already published an app called dongu using https://dashboard.heroku.com/new?template=https%3A%2F%2Fgithub.com%2Fopentok%2Flearning-opentok-php&button-url=https%3A%2F%2Fgithub.com%2Fopentok%2Flearning-opentok-php . I thought the git URL was git@heroku.com:dongu.git, however it doesn't work.

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

All I want to do is add a simple HTML file to my Heroku app, however I can't find the URL to push to master from. Is there any way of finding it out?

Try

heroku git:remote -a dongu

then

git push heroku master

It might not be a git repo yet. Run git init first.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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