0

我有一个想要在 Azure 中部署的 Web 项目。

我想为每个国家/地区创建一个 IIS 网站,并且我希望能够独立部署每个网站(不是一次全部部署)。这个怎么做?

4

2 回答 2

2

好吧,你有两个选择:

  1. 使用Windows Azure网站托管您的网站
  2. 使用Windows Azure Accelerator for WebRoles或类似该方法的您自己的项目。

但是,您必须注意,第二个选项是由于Azure 网站的可用性而不再受支持的项目。借助 Azure 网站,您几乎可以拥有通过加速器获得的一切。您可以在专用实例上托管您的网站,并单独管理它们。您可以通过 FTP/GIT/TFS/WebDeploy 更新/部署您的网站数据,无论您最喜欢哪种方法。我看到的网站唯一的缺点是缺少启动任务和自定义环境(Windows、IIS 设置等)的能力。

于 2012-07-09T09:23:35.367 回答
0

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:

  1. For each of your countries you will need to set up the web site in azure.
  2. Then for each of those web sites you have created go to their dashboard page and download the publish profile settings.
  3. It is these settings that you can import into you Visual Studio solution by selecting the publish command and browsing for the settings profile file you downloaded and importing it.
  4. Then in future when you right click on the web site in your solution and select publish it will publish to your web site in Azure.

I have created a fictional website for Spain below is the link you will need in order to initiate a publish from Visual Studio.

How to download the publish profile settings

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

于 2012-07-09T09:29:58.313 回答