I'm trying to follow Hartl's tutorial. At the end of first chapter, he has us deploying to Heroku's site. I tried doing that, and it didn't work.
This was four days ago. I'm trying again ... and noticed that when I do "git push heroku master" I get this:
ssh: connect to host heroky.com port 22: Connection refused
fatal: The remote end hung up unexpectedly
Notice it says heroky.com? Should it be that?
When I did "git config --list," among other things it states:
remote.heroku.url=git@heroky.com:{first_app}.git
I'm really new to all this, so any advice to fix this would be really really appreciated.
Edit:
based on a comment below, I've edited .git/config file and reset heroky to heroku.
But now, I'm getting:
Warning: Permanently added the RSA host key for IP address 'xx.xx.xx.xxx'(not really x's) to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
What does this mean?
Edit 2:
Never mind about permission being denied. I had apparently entered wrong password. Now I have a new problem which has me stumped.
When I try "git push heroku master" again, this is what I get:
! No such app as first_app.
fatal: The remote end hung up unexpectedly
Why????
This is my config file:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[remote "origin"]
url = https://github.com/name_removed/first_app.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "heroku"]
url = git@heroku.com:first_app.git
fetch = +refs/heads/*:refs/remotes/heroku/*
Edit 3
Turns out that the problem was in this line: url = git@heroku.com:first_app.git
Changed first_app.git to Heroku's app url. Then it worked!
Thanks all. Not sure how to give credit or so on ... since it was elithrar's comment that first started the ball rolling in trouble-shooting the whole thing. It didn't solve it, but it got me somewhere. How does one deal points,credit, etc, here? Or should I also give credit to jli since he answered in an answer format? (yes, i overthink these things).
Edit 4
Actually, I have one more question ... why did I have to edit my config file to change first_app.git line? Shouldn't that have been automatic? I'm confused how the whole thing was handled.