什么是之间和QUOT的差异,网络和QUOT;网站和Windows Azure中的其他网站? [英] What's the difference between "Web" website and other websites in Windows Azure?
问题描述
在定义Web角色我可以在指定网站< WebRole><网站与GT;
元素。其中一个站点可以有一个名称网络
然后我不需要指定 physicalDirectory
它 - 而不是该网站的内容将被复制到 sitesroot
文件夹,复制为approot
的内容和膨胀的服务包。
When defining a web role I can specify sites under <WebRole><Sites>
element. One of the sites can have a name "Web"
and then I'm not required to specify physicalDirectory
for it - instead the site contents will be copied into sitesroot
folder and duplicate the contents of approot
and inflate the service package.
因此,它看起来就像是一个没有脑子 - 我的名字我的网站的任何其他名称不是网络
并指定 physicalDirectory
,它会工作得很好,并没有重复,因此更小的封装。
So it looks like it's a no-brainer - I should name my site any other name than "Web"
and specify physicalDirectory
and it will work just fine and without duplication hence a smaller package.
还有什么来命名我的网站网络
我获得什么?我为什么要命名为给出的消极后果网络
?
Is there anything I gain by naming my site "Web"
? Why would I want to name it "Web"
given the negative consequences?
推荐答案
许多个月后,我无法找到更改网站名称,任何东西,除了什么问题网站
和显式指定 physicalDirectory
。这只是工作。
Many months later I can't find any problems with changing the site name to anything except Web
and explicitly specifying the physicalDirectory
. It just works.
这只是看起来像Azure工具的默认值是不合理的。我的 .cspkg
变得越来越小,因此它需要较少的prepare少卸载和浪费我的时间少得多。我想我找到了这点。
It just looks like Azure tools defaults are unreasonable. My .cspkg
got smaller, so it takes less to prepare and less to unload and I waste much less time. I wish I found this earlier.
这篇关于什么是之间和QUOT的差异,网络和QUOT;网站和Windows Azure中的其他网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!