简体   繁体   English

将两个github存储库部署到单个Azure Web应用程序

[英]Deploying two github repositories to single azure web app

This is not really a programmatically question, but i couldnt find any more suitable stackexchange site for it. 这不是一个程序上的问题,但是我找不到适合它的stackexchange网站。

I have recently moved to Azure, where i deploy my backend web applications and API's. 我最近搬到了Azure,在那里部署了后端Web应用程序和API。 I found that it is possible to deploy multiple web services to one Azure Web App, by creating a branch with its own endpoint url, like so. 我发现可以通过创建一个具有自己的端点URL的分支来将多个Web服务部署到一个Azure Web App。

Normal : www.example.azurewebsites.net

New    : www.example.azurewebsites.net/newSite

I found it is easy to deploy my .NET services from Visual studio to the new endpoint, but does anyone know if i can deploy my git repository to this endpoint by any chance? 我发现将.NET服务从Visual Studio部署到新端点很容易,但是没有人知道我是否可以将git存储库部署到该端点吗?

I am new to azure, so any help will be greatly appreciated. 我是天蓝色的新手,所以我们将不胜感激。

You just need to customize the deployment procedure a bit. 您只需要稍微自定义部署过程即可。 Amit Apple has a good series on this. 阿米特·苹果(Amit Apple)在这方面有很好的系列。 Customize your deployment script to build your temporary directory with everything you need and then deploy it. 自定义您的部署脚本,以使用所需的所有内容构建临时目录,然后进行部署。 Azure will give you the deployment script to customize or you can use the azure-cli to generate one and you can customize it. Azure将为您提供要自定义的部署脚本,或者您可以使用azure-cli生成一个脚本,然后可以对其进行自定义。

http://blog.amitapple.com/post/38417491924/azurewebsitecustomdeploymentpart1 http://blog.amitapple.com/post/38417491924/azurewebsitecustomdeploymentpart1

The deployment script will use KuduSync to copy either a repository or temp folder to your wwwroot folder, so it's up to you to build this folder and have it pushed out. 部署脚本将使用KuduSync将存储库或临时文件夹复制到您的wwwroot文件夹,因此,由您来构建此文件夹并将其推出。

https://github.com/projectkudu/kudu/wiki/Custom-Deployment-Script https://github.com/projectkudu/kudu/wiki/Custom-Deployment-Script

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM