如何部署在Azure中唯一劳动力/ Web角色 [英] How to deploy only worker/web role in Azure

查看:204
本文介绍了如何部署在Azure中唯一劳动力/ Web角色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果你有一个网站,并在一个蓝色的解决方案,辅助角色,所有的等待发布的更新包,上传至云存储,等待包部署可能是疲惫不堪,是浪费了大量的时间。
如何上传/只部署了微软的Azure解决方案,包含两个角色的工人或网络的作用,节省上网流量和时间?

If you have a web AND a worker role in an Azure solution, all the waiting for the publishing an update package, uploading to the cloud storage, waiting for the package to be deployed could be exhausting, an waste a lot of time. How to upload/deploy only the worker or web role of an Microsoft Azure Solution, that contains both roles, and save both internet traffic and time?

推荐答案

有没有选择建立一个包只有两个角色之一,但如果你有有限的带宽或流量,并希望从上传时间节省(这可以是一个相当大的部分,如果你有大量的静态内容:<一href=\"http://www.silverlighthack.com/post/2011/05/22/Azure-Deployment-Package-Inefficiency-%28Bug%29-Content-Size-Added-Twice.aspx\">Look这里的一个例子),有一个选项。

There is no option to build a package for only one of the both roles, but if you have limited bandwidth or traffic, and want to save from the upload time (which can be quite a big portion if you have a lot of static content: Look here for an example), there is one option.

至于也许你知道,从Visual Studio部署(以下简称cspkg'文件)所产生的包而已,不是一个存档文件。
假设你希望只更新辅助角色。的步骤是:

As maybe you know, the package generated from Visual Studio for deployment (the 'cspkg' file) is nothing more, than an archive file. Suppose, you want to update the WORKER role only. The steps are:


  1. 创建更新包正常

  2. 最好的归档管理器(7zfm)
  3. 打开它
  4. 里面,除了其他文件是2'cssx文件 - 每个
    角色。 删除不必要的文件cssx

  5. 上传到Azure的Blob存储(可选)

  6. 从Azure管理门户使用更新的情况下,
    本地或存储源作为正常

  7. 在角色下拉列表中,只选择要更新的作用

  8. preSS确定:)

希望这有助于。

这篇关于如何部署在Azure中唯一劳动力/ Web角色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆