Deploy Heroku git remote not added

I'm new to Heroku, trying to follow the tutorial "Getting Started with NodeJS" and stuck on the " Deploy Application " stage .

When I run "heroku create", I do not get "Git remote added Heroku". I realized that he disappeared after trying to perform the step "git push heroku master" and get "fatal: not a git repository (or any of the parent directories): git." What have I done wrong?

+5
source share
5 answers

Please run the following command and enter:

git init

After that you can git push heroku masteragain

+4
source

:

heroku git:remote -a 'app-name e.g radiant-garden-35190'

, , :

git remote -v

:

heroku  https://git.heroku.com/radiant-garden-35190.git (fetch)
heroku  https://git.heroku.com/radiant-garden-35190.git (push)

, github, .

+14

:

heroku git:remote --app my-heroku-app-name -r my-custom-remote-name
0

git remote -v, , . ?

running git remote-v

0

@tien-nguyen. :

git init

Git- . :

git push heroku master

error: src refspec master does not match any.
error: failed to push some refs to 'heroku'

, , . , , .

git add .
git commit -m "initial commit"
git push heroku master

.

, git remote . :

heroku git:remote -a <name of the heroku app>
git remote -v

URL, :

heroku  https://git.heroku.com/<name of the heroku app>.git (fetch)
heroku  https://git.heroku.com/<name of the heroku app>.git (push)

, !

0
source

All Articles