将两个github存储库部署到单个天蓝色的web应用程序 [英] Deploying two github repositories to single azure web app

查看:132
本文介绍了将两个github存储库部署到单个天蓝色的web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我最近搬到了Azure,在那里我部署了我的后端网络应用程序和API。我发现可以通过创建一个具有自己的端点URL的分支来将多个Web服务部署到一个Azure Web App,就像这样。

  Normal:www.example.azurewebsites.net 

新:www.example.azurewebsites.net/newSite

我发现将Visual Studio中的.NET服务部署到新端点很容易,但是有谁知道我是否可以将git存储库部署到此端点?



我是新来的azure,所以任何帮助都将不胜感激。

解决方案

您只需要定制部署过程。阿米特苹果有一个很好的系列。自定义您的部署脚本,用您需要的所有东西构建您的临时目录,然后部署它。 Azure会为您提供部署脚本来进行自定义,或者您可以使用azure-cli生成一个脚本,并且可以对其进行自定义。


$ b

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

部署脚本将使用KuduSync将存储库或临时文件夹复制到您的wwwroot文件夹,因此您可以建立此文件夹并将其推出。



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


This is not really a programmatically question, but i couldnt find any more suitable stackexchange site for it.

I have recently moved to Azure, where i deploy my backend web applications and API's. 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.

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?

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. 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.

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.

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

这篇关于将两个github存储库部署到单个天蓝色的web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆