Search code examples
herokugithubgithub-enterprise

How do I connect internal corporate github repo to heroku?


I was following guidelines and tried to connect heroku to a github repo within our own corporate github (the github url differs from the standard one). Yet, I couldn't find a proper way to do so – clicking on this button would redirect me to github.com, and not git.companyname.com:

enter image description here

Any suggestions on how to tackle this issue? Do I need to go to internal github and manually add heroku as OAuth application?


Solution

  • As it turned out, Heroku does not integrate well with internal enterprise github. In my case I have two remote destinations in my git: one is for github, another one is for heroku, and I push the code changes to both remote endpoints.