我有一个想要在 Azure 中部署的 Web 项目。
我想为每个国家/地区创建一个 IIS 网站,并且我希望能够独立部署每个网站(不是一次全部部署)。这个怎么做?
好吧,你有两个选择:
但是,您必须注意,第二个选项是由于Azure 网站的可用性而不再受支持的项目。借助 Azure 网站,您几乎可以拥有通过加速器获得的一切。您可以在专用实例上托管您的网站,并单独管理它们。您可以通过 FTP/GIT/TFS/WebDeploy 更新/部署您的网站数据,无论您最喜欢哪种方法。我看到的网站唯一的缺点是缺少启动任务和自定义环境(Windows、IIS 设置等)的能力。
When you have set up your Azure account you can go the the web sites section and start the construction of your Azure web spaces, the interface in the preview is very straight forward to use and intuitive.
For deployment using the publish command in from Visual Studio 2012 (which I found the easiest) here are the steps you will need to undertake:
I have created a fictional website for Spain below is the link you will need in order to initiate a publish from Visual Studio.
------------ EDIT -------------
For Visual Studio 2010 I met some difficulties trying to publish, in fact the publish profile you can download was not importable to Visual Studio 2010, well at least I could not figure it out.
Instead I created a deployment user by clicking on the 'Reset Deployment Credentials' link on the Azure dashboard (see the link in the image), created the user and then published via FTP from Visual Studio 2010.
What I would like to flag up is the maintenance issue of having one site for each country rather than one site with Localization, (if it is a language issue). A small change multiplied just 20 times for 20 different countries becomes a larger task and if you have lots of little changes it soon becomes a large task to maintain them all.