When deploying an app, Heroku's documentation mentions a git push
. Does this mean that Heroku pushes my code to a public Git repo? Or is it private, like OpenShift?
You push into a private git.heroku.com repo that yourself and your app collaborators have access to.
That is what HTTP Git authentication says:
The Heroku HTTP Git endpoint only accepts API-key based HTTP Basic authentication by default and SSH is also supported using keys. (A username is not required and any value passed for username is ignored and SSH keys for SSH.)
Meaning: if there is no authentication, no git endpoint operation is possible (including cloning/pulling with anonymous access).
That makes all heroku git repo private.
No, the code is not public. Do not confuse GIT with GITHUB.
When you deploy to heroku the repository is private to the owner and the added collaborators.
You Don't have to worry about that because in the Heroku platform the git we use for deployment was private. You could do pull/clone/push to your git to the Heroku because you might provide the SSH key of your computer to your Heroku account. So, if anyone tries to clone/pull/push to your Heroku git, he will fail to do that. Note: if your SSH key is licked with others, he can access your git and do anything with your Heroku git.
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