Strider-CD / strider-heroku

Strider plugin for heroku deployment
2 stars 8 forks source link

Heroku push could not read Username for 'https://git.heroku.com' #11

Open jaikme opened 8 years ago

jaikme commented 8 years ago

I'm trying to make continuous deployment to Heroku, but when my Strider app run the task "Deploy", it fails...

deploy:
git push -f https://git.heroku.com/app.git staging:master heroku
fatal: could not read Username for 'https://git.heroku.com': No such device or address

The strider-heroku plugin are up to date, and the client panel are correctly configured ,as expected. The Strider is running at the Heroku too. I already registered every SSH Keys and registered API Clients correctly.

Does anyone know what can this be?

SeeTrai commented 8 years ago

I had this issue as well. The problem is that the git_url is set to use http instead of ssh which I'm guessing the default is now. Until there is a code fix, you can change the property in mongodb. The property is in the projects collection project.branches.plugins[id="heroku"].config.app.git_url .

The value could be something like git@heroku.com:app.git (that's what worked for me)

SeeTrai commented 8 years ago

I have a PR for this.

jaikme commented 8 years ago

Mhhh Well, I tried use SSH url, but my VM couldn't find the ssh keys to log-in. So I solved this issue adding the .netrc file at my project root The .netrc file is a credentials files, so, this option is not good because this file will have heroku API key inside with user email:

machine api.heroku.com
  login user@user.com
  password xxxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxxxx
machine git.heroku.com
  login anotheruser@user.com
  password xxxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxxxx