我已经为同一个存储库设置了多个 heroku 实例,如此处所述。按照建议,每个 heroku 实例对应一个不同的远程(暂存、生产等)。我的挑战是我们团队的几名成员将进行部署。但是,在我使用 heroku 设置它们之后,heroku 遥控器仅存在于我的本地 git 中。其他团队成员的存储库的 git 克隆也了解 heroku 远程的最佳方式是什么,以便他们也可以推送到它们进行部署?我们使用 gitolite(类似于私有 github)服务器作为中央 git 存储库,并从中推送和拉取更改。
问问题
113 次
1 回答
1
How about they set up a git remote for each app? eg.
git remote add production git@heroku.com:furious-robot-218.git
git remote add staging git@heroku.com:furious-wind-28.git
The heroku create
you used to create those apps, creates the app on Heroku's side, but also created a git remote for you on your side. For example, if you did this, you'd see your remotes:
git remote -v
于 2012-07-13T19:24:56.170 回答