- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个 azure 的移动服务,该服务将在某个时候上线。所以我需要创建 UAT 和 dev 版本,它们将指向 UAT 和 dev 数据库。我正在努力解决的是如何创建这些。
我的 live、UAT 和 Dev 数据库中的命名空间需要相同,但如果我创建一个名为 myAppName_UAT 的新移动服务,它将希望使用 MyAppName_UAT 作为命名空间,因此不会找到任何表。
有人解决这个问题了吗?产品上线后,我需要能够针对开发数据库测试移动应用程序而不影响上线,这肯定是常见场景?
如有任何建议,我们将不胜感激。
编辑:我特别关注的是如何管理 Azure 门户中的多个环境。我可以部署 UAT 环境的所有其他组件,但我仍停留在移动服务上。
我并不是要求我的应用程序能够切换配置文件或在数据库之间迁移数据。有人有过在运行多个移动服务的情况下运行具有多个组件的 azure 应用程序的经验吗?
最佳答案
您使用版本控制吗?对我来说,您只需要创建分支来分隔“UAT”和“dev”版本。
关于数据库:
您可以使用 web.config 转换在数据库之间切换连接字符串。
http://msdn.microsoft.com/en-us/library/dd465326.aspx
How do I use Web.Config transform on my connection strings?
=================================================================================
更新:
好的,现在我明白你想要什么了。
创建两个版本的移动服务:
1-Log in Windows Azure Management Portal (http://manage.windowsazure.com)
2-Create your test mobile services (if you already have then, skip this step):
2.1- New -> Compute -> Mobile Services
2.2- Url - MyMobileServicesTest
2.3- Database -> Create a new (test db).
3-Create your production mobile services (if you already have then, skip this step):
2.1- New -> Compute -> Mobile Services
2.2- Url - MyMobileServicesProduction
2.3- Database -> Create a new (production db).
现在,您有两个不同的版本。
使用 Windows Azure SDK:
//public static MobileServiceClient MobileService = new MobileServiceClient(
// "AppUrl",
// "AppKey"
//);
注意:AppUrl 将为“MyMobileServicesTest.azure-mobile.net/”或“MyMobileServicesProduction.azure-mobile.net/”。应用程序 key ,每个环境都有自己的。您可以将此设置存储在配置文件中,并根据您正在执行的操作进行切换。
更多信息:
http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-with-data-dotnet/
关于mobile - Azure 移动服务实时/UAT/开发环境,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19049188/
在我正在处理的遗留代码库中,有一个条件评估器,它接受用户输入来构建条件。然后在运行时使用 php eval() 评估此条件。在不使用 eval 的情况下解决此问题的最佳方法是什么? 例如我有一个用户在
关闭。这个问题需要更多focused .它目前不接受答案。 想改进这个问题吗? 更新问题,使其只关注一个问题 editing this post . 关闭 6 年前。 Improve this qu
按照目前的情况,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
我有一个 azure 的移动服务,该服务将在某个时候上线。所以我需要创建 UAT 和 dev 版本,它们将指向 UAT 和 dev 数据库。我正在努力解决的是如何创建这些。 我的 live、UAT 和
我正在尝试估算测试项目所需的测试人员数量。一种方法是确定将需要的脚本数量,并想知道与需求数量相比脚本数量是否有经验法则。我估计 2 - 3。 1个晴天型式试验 1 表示阴性测试 1 表示至少将 1 项
我已经创建了一个 api 请求来发布表单数据以在 salesforce 中创建潜在客户。 首先我请求授权 key 将数据插入 salesforce(使用 oauth、客户端 ID 和客户端密码。) 这
我正在尝试使用以下命令构建一个 Angular CLI(版本 5)应用程序ng build --env=uat --prod -bh/ 我收到错误消息“环境“uat”不存在。” 我在 angular-
我们正在开发一个 Phonegap 应用程序(这个问题适用于所有移动平台,本地或混合),它需要与我们开发的一组网络服务进行交互。 我们将测试、UAT 和生产/实时服务器用于 Web 服务。有时出于实验
有人可以帮忙吗 我在 API 中遇到了奇怪的问题。我的后端是在 php 中创建的,UI 在 react 中创建。在我的 env 文件中存在以下路径。 API_URL=http://localhost:
在开发模式下是否可以有以下路由: GET / controllers.Assets.at(path="/public/ui/dev", file="index.html") GET /
一家来自韩国的公司似乎下载了我们的前端 html/CSS 文件并建立了一个网站,但他们没有费心删除我们的 UAT 编号,现在我们的分析中充满了来自他们网站的误导性流量。已经联系他们将其删除,但有没有办
我知道,我们可以使用文件转换和变量替换选项在发布期间对.config文件进行动态值修改。 但是我有一个 .XML 文件,如下所示 123546 Custome URL 在上面的
我是 Node js 新手,开始使用 Angular 1.2 和 Node js 开发 Angular 应用程序。截至目前,我已在 Node services.js 中硬编码了 REST API(Ja
我最近读到了有关 github 流程的内容。我现在正在使用 gitflow,我发现 Github flow 看起来非常有趣,因为它在工作流程方面不像 gitflow 那么繁重。 但我不明白的是,一旦功
关闭。这个问题需要更多focused .它目前不接受答案。 想改进这个问题吗? 更新问题,使其只关注一个问题 editing this post . 关闭 6 年前。 Improve this qu
我有一个 UAT 网站,托管在客户的域中。很快所有其他浏览器都可以正常工作,但是当我尝试打开 Microsoft Edge 时,它给了我一个错误。我已经尝试了以下步骤 我清除了所有历史记录、缓存、
我一直试图在网上找到这个问题的答案,但找不到足够好的答案让我对答案有把握。 我认为它们本质上是相同的,但用户验收测试 (UAT) 需要真实用户,而端到端 (E2E) 测试使用自动化工具来模拟用户? 最
我必须在 PROD 和 UAT 环境之间执行 MySQL DB 架构比较。由于我是第一次进行这项事件,有人可以帮助我如何执行相同的操作吗?我在网上找到了几篇文章,但这些文章是针对特定数据库中的 2 个
我有一个 Python 应用程序,我想先在 DEV 中部署它,然后在 UAT 中,最后在 PROD 中。我可以使用 Jenkins 和 Webhooks 来构建它,这样当它被推送到 DEV 时它会触发
我是一名网页设计师,帮助我的客户插入 CMS 内容。这个CMS是在海外托管和创建的,我没有本地CMS。但是我的客户希望我在较低的环境中提供 URL,以便他们可以在 CMS 可用时进行测试。我很困惑,因
我是一名优秀的程序员,十分优秀!