Can't find URL for Heroku repository

1.8k views Asked by At

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 [email protected]:dongu.git, however it doesn't work.

Error log:

News-MacBook-Pro:Dongu michaelnares$ git remote add heroku [email protected]: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 '[email protected]: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?

3

There are 3 answers

0
Michael Nares On

Simply following the instructions in https://dashboard.heroku.com/apps/dongu/deploy/heroku-git did the trick, without me needing to know the remote URL, hopefully that's useful for anyone else having this problem.

3
Dave Mun On

Try

heroku git:remote -a dongu

then

git push heroku master

0
Kirk Strobeck On

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