I'm new to Heroku and I'm not familiar with the Deploy/Pipeline verbiage.
I already have the Heroku CLI installed and I deployed an app using:
run: heroku create myNewHerokuApp
My instance is now made.
I have a private repo on Github.
https://github.com/myUserName/myPrivateRepoName.git
How do I link my myNewHerokuApp
with myPrivateRepoName.git
?
Heroku Button is no longer limited to source code hosted in public GitHub repos. It now works with both public and private GitHub repos.
You can configure GitHub integration in the Deploy tab of apps in the Heroku Dashboard. To configure GitHub integration, you have to authenticate with GitHub. You only have to do this once per Heroku account. GitHub repo admin access is required for you to configure automatic GitHub deploys.
We are unable to access this connected repository on GitHub The authorization key is not valid, or the account used to connect to GitHub doesn't have access to the repository. Try disconnecting the repository above and then reconnect. That is the error I got when trying to connect my private GitHub repo to Heroku.
As mentioned in the documentation.
You can configure GitHub integration in the Deploy tab of apps in the Heroku Dashboard. To configure GitHub integration, you have to authenticate with GitHub. You only have to do this once per Heroku account.
After that you can find public or private repo in this panel:
Here is a link from heroku's documentation that tells you exactly how to do this , follow these steps and you will connect your repo with your heroku app
https://devcenter.heroku.com/articles/github-integration
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With