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上非常有效 ...
随机推荐
- windows下安装python和依赖包的利器——Anaconda
在windows下安装python和很多依赖包,安装起来略为痛苦,可以使用python的大整合包——Anaconda Anaconda下载地址: http://continuum.io/downloa ...
- python学习笔记:Day02
一.列表(list) 1.定义一个列表 name=["tom","jerry","12","13","lose ...
- MySQL数据丢失讨论
原文地址:http://hatemysql.com/tag/sync_binlog/ 1. 概述 很多企业选择MySQL都会担心它的数据丢失问题,从而选择Oracle,但是其实并不十分清楚什么情况下 ...
- Sensor(ACCELEROMETER)
package com.example.sensor01; import java.util.List; import android.hardware.Sensor; import android. ...
- Java虚拟机3:常用JVM命令参数
之后写的东西就会用到虚拟机参数了,现在这里汇个总自己平时用到的.看到的一些虚拟机参数.现在看不懂没关系,反正之后都会用到的: (1)-Xms20M 表示设置堆容量的最小值为20M,必须以M为单位 (2 ...
- Nightmare基于phantomjs的自动化测试套件
今天将介绍一款自动化测试套件名叫nightmare,他是一个基于phantomjs的测试框架,一个基于phantomjs之上为测试应用封装的一套high level API.其API以goto, re ...
- 如何为编程爱好者设计一款好玩的智能硬件(七)——LCD1602点阵字符型液晶显示模块驱动封装(上)
当前进展: 一.我的构想:如何为编程爱好者设计一款好玩的智能硬件(一)——即插即用.积木化.功能重组的智能硬件模块构想 二.别人家的孩子:如何为编程爱好者设计一款好玩的智能硬件(二)——别人是如何设计 ...
- easy-ui 小白进阶史(二):操作数据,easy-ui操作
easy-ui的操作及交互: Html: @using LangBo.Facade; @using LangBo.DataDefine; @using System.Threading.Tasks; ...
- 分离EF connectionString里的db连接串
创建EF模型后,自动生成的connectionString如下: <add name="TravelPPEntities" connectionString="me ...
- Java面向对象思想解决猜拳问题
第一个面向对象的程序: 一个控制台猜拳小游戏: 第一步选择角色: 第二部选择剪刀,石头,布,与电脑进行PK: 第三部选择继续或者选择结束; 结束显示比赛的局数,以及各自赢得的分数: 设计思路 分析问题 ...