“Web"和“Web"有什么区别?Windows Azure 中的网站和其他网站? [英] What's the difference between "Web" website and other websites in Windows Azure?
问题描述
当定义网络角色时,我可以在下面指定站点<WebRole><Sites>
元素.其中一个站点可以有一个名称 "Web"
然后我不需要为它指定 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.
所以它看起来很简单 - 我应该将我的网站命名为 "Web"
以外的任何其他名称并指定 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.
将我的网站命名为 Web"
有什么好处吗?考虑到负面后果,我为什么要把它命名为 "Web"
?
Is there anything I gain by naming my site "Web"
? Why would I want to name it "Web"
given the negative consequences?
推荐答案
几个月后,除了 Web
和明确指定 物理目录
.它只是工作.
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
变小了,因此准备和卸载所需的时间更少,我浪费的时间也少了很多.我希望我早点找到这个.
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.
这篇关于“Web"和“Web"有什么区别?Windows Azure 中的网站和其他网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!