Winnemucca
Winnemucca

Reputation: 3458

how to deploy heroku with an existing an git repository

I have been working on a repository and am now pushing it to heroku. I went through heroku for a guide https://devcenter.heroku.com/articles/git

I checked to make sure I had the git and heroku configuration.

git remote -v

I get back a heroku config and a git config for fetch and push

heroku git:remote -a path name

However, I get back "couldn't find that app" So I typed

heroku apps

My app is not there. So I am missing something. I followed the directions and can verify my remote. Not sure what I am missing.

Upvotes: 1

Views: 5542

Answers (1)

Igal S.
Igal S.

Reputation: 14603

First remove the heroku remote

git remote rm heroku

Add it again correctly

git remote add heroku https://git.heroku.com/sleepy-escarpment-1894.git

Then push your app

git push heroku master

Upvotes: 5

Related Questions