如何为 angularjs/asp.net web api 设置构建+部署环境?
How to setup a build+deploy environment for an angularjs/asp.net web api?
我有一个带有 c# webapi 的 angularjs 应用程序。 angular 应用程序的存储库是 stash,c# restapi 在 TFS 中。是否 possible/easy 为这个堆栈创建一个自动化的构建和部署环境?对此有哪些可能的解决方案?有没有人有博客文章 abt。这个?
目前有两种方式与 Bitbucket repo 和 TFS 集成:
- 选项 1:从 Bitbucket 一次性导入源代码
- 选项 2:坚持使用 Bitbucket 并在 VSTS/TFS
上触发 CI
注意这不是真的 CI
While this is not exactl what some people might expect from CI
(because it doesn’t really build on every check-in) for most scenarios
this should be good enough. Especially if your build process is
running for a longer time this shouldn’t be an issue at all.
详情请参考本教程:Integrating VSTS with Bitbucket, you could also take a look at this blog: Visual Studio Team Services: Connecting a BitBucket Repository
对于CI/CD of angular app/angularjs/asp.net web api,虽然没有一个博客完整的描述了一切。您仍然可以参考一些类似的相关博客(甚至对于 Azure)并设置您自己的管道,使用 NPM 来安装 packages/dependencies:
- 设置 CI 管道以将您的 Angular 应用程序部署到
Azure 使用 Visual Studio 团队服务和 GitHub
- Define a continuous integration build for your Node.js app
- How to deploy a pure Angular application from Visual Studio Team System to Azure websites
我有一个带有 c# webapi 的 angularjs 应用程序。 angular 应用程序的存储库是 stash,c# restapi 在 TFS 中。是否 possible/easy 为这个堆栈创建一个自动化的构建和部署环境?对此有哪些可能的解决方案?有没有人有博客文章 abt。这个?
目前有两种方式与 Bitbucket repo 和 TFS 集成:
- 选项 1:从 Bitbucket 一次性导入源代码
- 选项 2:坚持使用 Bitbucket 并在 VSTS/TFS 上触发 CI
注意这不是真的 CI
While this is not exactl what some people might expect from CI (because it doesn’t really build on every check-in) for most scenarios this should be good enough. Especially if your build process is running for a longer time this shouldn’t be an issue at all.
详情请参考本教程:Integrating VSTS with Bitbucket, you could also take a look at this blog: Visual Studio Team Services: Connecting a BitBucket Repository
对于CI/CD of angular app/angularjs/asp.net web api,虽然没有一个博客完整的描述了一切。您仍然可以参考一些类似的相关博客(甚至对于 Azure)并设置您自己的管道,使用 NPM 来安装 packages/dependencies:
- 设置 CI 管道以将您的 Angular 应用程序部署到 Azure 使用 Visual Studio 团队服务和 GitHub
- Define a continuous integration build for your Node.js app
- How to deploy a pure Angular application from Visual Studio Team System to Azure websites