gpt4 book ai didi

git - 如何持续部署 : VisualStudio. com 的 tfs Git -> Heroku

转载 作者:行者123 更新时间:2023-12-02 09:05:45 25 4
gpt4 key购买 nike

我在 VisualStudio.com 的 tfs Git 存储库中拥有私有(private)代码。

我想在返回代码时将其持续部署到 Heroku。

最简单/最容易的方法是什么?

例如VisualStudio.com 是否支持推送到 Heroku git 存储库?

Heroku 是否支持监控除 GitHub 之外的任何其他 git 存储库?

还有其他创意解决方案吗?我有多人推送到 VisualStudio 存储库,因此我希望避免每个人都必须配置两个推送点...如果可能的话。

最佳答案

Heroky Release Tools Extension在 Visual Studio Team Services Marketplace 中,您可以使用它来部署到 Heroku 应用程序。 (将 it 安装到您的 VSTS 中)

  1. 创建 Heroku 应用程序或使用现有应用程序;
  2. 从有效的应用贡献者用户处检索 API key ;
  3. 配置一个构建定义,生成应推送到 Heroku 的最终文件(我们建议您将所有文件结构放在“drop”命名文件夹下;
  4. 配置发布定义,其中包含 Push to Heroku 任务。

安装:

enter image description here

enter image description here

enter image description here

关于git - 如何持续部署 : VisualStudio. com 的 tfs Git -> Heroku,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40229712/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com