Windows Azure Web Site (10) Web Site测试环境
《Windows Azure Platform 系列文章目录》
我们知道,在使用Azure Cloud Service的时候,会有2个不同的环境,称为Production环境和Staging环境。
Windows Azure Cloud Service (5) 由过渡环境向生产环境过渡
- Production环境就是生产环境,DNS地址就是真实的DNS地址
- Staging就是过渡环境,DNS地址是随机的GUID地址。我们可以在Staging环境里先进行测试,测试通过以后可以把Staging环境通过SWAP VIP的方式直接切换到生产环境里。
- 注意:Azure Cloud Service的Production环境和Staging环境,只是针对于部署在Azure Cloud Service的Web应用程序的版本,不针对Azure Storage云存储版本和SQL Azure数据库版本。如果你的生产环境和测试环境使用不同的数据库连接字符串,请在Web.Config等配置页面中进行配置。
其实在Azure Web Site里也有类似的功能,在这里笔者简单的介绍一下。
1.首先我们创建一个空的Azure Web Site项目,DNS信息为:http://leiwebsiteproduction.chinacloudsites.cn/
2.我们点击创建成功的Azure Web Site,然后点击仪表盘中的选项,添加新的部署槽。如下图:

3.在弹出的窗口中,输入新的部署槽的名称为leiwebsitestaging

注意上图的配置源,如果我们已经在生产环境http://leiwebsiteproduction.chinacloudsites.cn/部署了Web Application,
则添加部署槽的时候,会把生产环境的代码复制到测试环境下。
4.这时候我们就有2套DNS信息了,如下所示:

- 第一行leiwebsiteproduction,就是生产环境,DNS信息为http://leiwebsiteproduction.chinacloudsites.cn/
- 第二行为leiwebsiteproduction-leiwebsitestaging,就是测试环境,DNS信息为:http://leiwebsiteproduction-leiwebsitestaging.chinacloudsites.cn/
5.然后我们按照之前的文档内容Windows Azure Web Site (6) 使用FTP发布Azure Web Site,把代码部署到Azure Web Site中,
注意:虽然Production环境和测试环境的FTP发布目录都一致,但是FTP的用户名是不一样的,如下图:
左侧的图片是生产环境,右侧的图片是过渡环境。

我们在Production生产发布的代码是Version 1.0,在过渡环境中发布的代码是Version 2.0,如下图:

6.阶段性总结,我们现在有2个不同的DNS地址,对应2套不同的Web Application版本
接下来,我们假设Staging过渡环境已经通过了QA测试,可以直接迁移到生产环境了,我们应该怎么操作呢?
我们选中Staging过渡环境,点击交换图标,如下图:

7.在弹出的界面中,源选择Staging

也就是说,把过渡环境Staging的Web Application代码,迁移到Production生产环境里。这样Production的Web Application就升级到Version 2.0了。如下图:

Windows Azure Web Site (10) Web Site测试环境的更多相关文章
- [New Portal]Windows Azure Virtual Machine (10) 自定义Windows Azure Virtual Machine模板
<Windows Azure Platform 系列文章目录> 通过之前的文章,我相信大家对微软Windows Azure Virtual Machine有一定的了解了. 虽然微软提供了非 ...
- Windows Azure Cloud Service (10) Role的生命周期
<Windows Azure Platform 系列文章目录> 在上一章内容中,我们提到了Windows Azure会依次调用角色(Role)实例的OnStart()方法和Run()方法. ...
- Windows Azure Virtual Network (10) 使用Azure Access Control List(ACL)设置客户端访问权限
<Windows Azure Platform 系列文章目录> 本文介绍的是国内由世纪互联运维的China Azure. 我们在创建完Windows Azure Virtual Machi ...
- Windows Azure Web Site (14) Azure Web Site IP白名单
<Windows Azure Platform 系列文章目录> 我们知道,在Azure Cloud Service和Virtual Machine,可以通过Endpoint ACL (Ac ...
- [New Portal]Windows Azure Web Site (3) 创建Web Site和云端数据库
<Windows Azure Platform 系列文章目录> 在前一章的内容里,我介绍了使用Windows Azure Management Portal创建Web Site.本章,我将 ...
- 连接到Windows Azure Point to Site VPN
Windows Azure支持两种模式的VPN接入: Site to Site,接入端需要有固定的公网IP地址,用于连接局域网和Windows Azure的虚拟网络. Point to Site,客户 ...
- 比较Windows Azure 网站(Web Sites), 云服务(Cloud Services)and 虚机(Virtual Machines)
Windows Azure提供了几个部署web应用程序的方法,比如Windows Azure网站.云服务和虚拟机.你可能无法确定哪一个最适合您的需要,或者你可能清楚的概念,比如IaaS vs PaaS ...
- [Windows Azure] Adding Sign-On to Your Web Application Using Windows Azure AD
Adding Sign-On to Your Web Application Using Windows Azure AD 14 out of 19 rated this helpful - Rate ...
- Windows Azure Web Role 的 IIS 重置
如果您是一名 Web开发人员,您很可能使用过"简单快捷"的iisreset命令重置运行不正常的 IIS主机.这种方法通常在经典的 Windows Server VM上非常有效 ...
随机推荐
- myrocks记录格式分析
概况 rocksdb作为KV存储引擎,那么myrocks记录最终会以kv的形式存储在rocksdb中.MySQL中的表一般由若干索引组成, 在innodb存储引擎中,每个索引对应一颗B树,而在rock ...
- 阿里云Linux安装软件镜像源
阿里云Linux安装软件镜像源 阿里云是最近新出的一个镜像源.得益与阿里云的高速发展,这么大的需求,肯定会推出自己的镜像源.阿里云Linux安装镜像源地址:http://mirrors.aliyun. ...
- DataTable汇总
一.排序 1 获取DataTable的默认视图 2 对视图设置排序表达式 3 用排序后的视图导出的新DataTable替换就DataTable (Asc升序可省略,多列排序用"," ...
- question
1.软件工程技术和软件应用技术用什么区别吗? 2.软件工程专业和计算机技术(不是计算机科学与技术)有什么区别吗? 3.
- How to Change RabbitMQ Queue Parameters in Production?
RabbitMQ does not allow re-declaring a queue with different values of parameters such as durability, ...
- write/wall 1
linux:/opt/software/lktest/c # wallhellllllllllllllllllllooooooooooooooooo^[[AasZZZZZZ^Clinux:/opt/s ...
- Memcache基础教程
Memcache是什么 Memcache是danga.com的一个项目,最早是为 LiveJournal 服务的,目前全世界不少人使用这个缓存项目来构建自己大负载的网站,来分担数据库的压力. 它可以应 ...
- display的理解
display可把框内显示的内容改变(自我理解) none 此元素不会被显示. block 此元素将显示为块级元素,此元素前后会带有换行符. inline 默认.此元素会被显示为内联元素,元素前后没有 ...
- Atitit.会员卡(包括银行卡)api的设计
Atitit.会员卡(包括银行卡)api的设计 1. 银行卡的本质是一种商业机构会员卡1 2. 会员卡号结构组成1 2.1. ●前六位是:发行者标识代码 Issuer Identification N ...
- paip.lucene 4.3 中文语义搜索最佳实践
paip.lucene 4.3 中文语义搜索最佳实践 首先一个问题是要不要使用lucene 自带的分词器...我觉得最好不使用哪自带的分词器.效果还凑火,就是不好控制... 先使用ik,ict,mms ...