我是 Heroku 的新手,但我设法将我的开发首先部署到 Heroku,我创建了一个 Heroku 应用程序并将我的 git 提交提交到 Heroku 提供的 git 存储库。
git仓库是Heroku Private提供的吗?
是否有可能从 UI(例如 GitHub)跟踪更改?或者我是否需要购买私有(private) Git 存储库并将其链接到 Heroku?
最佳答案
Heroku 不是像 GitHub 那样的源代码管理服务;它是一家平台即服务 (Paas) 托管公司,恰好使用 Git 进行部署。它们不提供任何图形界面来浏览您的存储库,事实上,使用 Heroku 作为您的主要代码存储库可能不是一个好主意。
如上所述in their documentation :
Heroku provides the git service primarily for deployment, and the ability to clone from it is offered as a convenience. We strongly recommend you store your code in another git repository such as GitHub and treat that as canonical.
从 Heroku 克隆存储库的访问权限是私有(private)的,由您用于部署的相同 SSH key 控制。
有许多服务提供免费的私有(private) Git 托管。 Bitbucket以及 GitLab 的云托管版本这是两个例子。
关于node.js - 部署到 Heroku 的 Node 应用程序中的 git 隐私,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23811511/