1

I just set up my heroku account. I am in my app's root directory..

so I run

heroku login
## give my credentials
heroku create --stack cedar
heroku keys:add
git push heroku master

then I get the error:

ssh: Could not resolve hostname heroku: Name or service not known
fatal: The remote end hung up unexpectedly

1 Answer 1

1

Perhaps the Heroku git remote address is somehow broken.

You could first try to access Heroku directly by performing host heroku.com and ssh [email protected] -T and see what that yields. Like this: Getting error while trying to push to Heroku

With host heroku.com you should get something like:

$ host heroku.com
heroku.com has address 50.19.85.132
heroku.com has address 50.19.85.154
heroku.com has address 50.19.85.156
heroku.com mail is handled by 10 aspmx2.googlemail.com.
heroku.com mail is handled by 10 aspmx3.googlemail.com.
heroku.com mail is handled by 10 aspmx4.googlemail.com.
heroku.com mail is handled by 10 aspmx5.googlemail.com.
heroku.com mail is handled by 10 alt1.aspmx.l.google.com.
heroku.com mail is handled by 10 alt2.aspmx.l.google.com.
heroku.com mail is handled by 10 aspmx.l.google.com.

Then try fixing your .git/config file, with:

[email protected]:your_app.git

Like this: Can't push to existing live heroku app on Cedar Stack

If those two don't help, then could be something more complex.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.