简体   繁体   English

如何将WebAPI和网站(CMS)放在同一个Azure移动应用容器中?

[英]How to put WebAPI and Website (CMS) to same Azure Mobile App container?

As stated by Microsoft, they claimed that the new Azure Mobile App can store Website and WebAPI in the same container. 如Microsoft所述,他们声称新的Azure移动应用程序可以将网站和WebAPI存储在同一容器中。 However, when I create a Azure App project using VS2015, I can use WebAPI only. 但是,当我使用VS2015创建Azure应用项目时,只能使用WebAPI。 If I want to build a website (backend content management system). 如果我想建立一个网站(后端内容管理系统)。 How can I create it? 如何创建它? or upload it? 或上传?

Does anyone have this experience? 有没有人有这种经验?

In Azure App Service, if you are using Basic/Standard or Premium plan, you get a dedicated (hidden) host on which you can deploy multiple websites to the same App Service Plan or Web Hosting Plan . 在Azure App Service中,如果您使用的是Basic / Standard或Premium计划,则将获得一个专用(隐藏)主机,在该主机上可以将多个网站部署到同一App Service PlanWeb Hosting Plan Each website here will have a different sub-domain/custom domain. 这里的每个网站都有一个不同的子域/自定义域。 You are charged on number of App Service Plans, not number of websites. 您需要按应用服务计划的数量而不是网站的数量付费。

In the Shared mode, you are charged on number of websites and approximately cost of 4 Shared Websites is equal to cost of a Basic App Service Plan. 在共享模式下,您需要为网站数量付费,大约4个共享网站的费用等于基本应用服务计划的费用。

However, for some reasons if you wish to host multiple website on the same Web App , there is a concept of deployment slots. 但是,出于某些原因,如果您希望在同一Web App上托管多个网站,则存在部署插槽的概念。 Typically used to host a staging warmed up new version of the same app, it has a different public sub-domain. 通常用于托管一个阶段的预热同一应用程序的新版本,它具有不同的公共子域。 Each deployment slot can host a different site. 每个部署插槽可以托管一个不同的站点。

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

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