PHP 的登台与测试服务器

发布于 2024-10-25 15:23:36 字数 24 浏览 2 评论 0原文

登台服务器和测试服务器有什么区别?

What is the difference between a staging and testing server ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

我们的影子 2024-11-01 15:23:36

对我来说,临时环境是一种测试环境。

登台环境(服务器、软件等等)的要点是它应该非常接近生产环境

  • 相同版本的软件、
  • 相同的运行守护
  • 进程、相同的类型 如果在生产环境中使用多台服务器
  • ,那么在临时环境中就会有不止一台服务器,例如用于测试负载平衡。
  • 一些真实数据(可能是生产数据的子集)

基本上,登台环境应该允许检查应用程序是否在类似生产的情况下工作。

至于“测试”环境,我通常用这个词来表示不止一种环境:

  • 开发机器:在某种程度上,它是一个测试平台,因为开发人员必须
  • 对他们的开发自动化测试服务器
  • 通过持续集成分阶段 进行单元测试环境

请注意,前两个环境通常比生产服务器(以及临时服务器)拥有更多的调试/分析/分析工具。

For me, a staging environment is one kind of testing environment.

The main point of the staging environment (servers, software and all) is that it's supposed to be quite close to the production environment :

  • same versions of software
  • same running daemons
  • same kind of physical servers
  • if using several servers in production, then have more than one server in staging -- to test load-balancing, for instance.
  • some real data (maybe a subset of your production data)

Basically, the staging environment should allow one to check if the application works in a production-like situation.

As for "testing" environments, I usually use this word for more than one kind of environments :

  • development machines : in a way, it's a testing platform, as developers have to unit-test their developments
  • automated-testing servers, with continuous integration
  • staging environment

Note that the first two environments will generally have more debugging /profiling / analysis tools that what you'll have on your production (and, so, staging) servers.

捎一片雪花 2024-11-01 15:23:36

测试服务器在很多方面与实际环境有所不同。它可以配置为显示大量错误信息,并将 error_reporting 设置为报告所有或大多数错误并打开 display_errors。它可能还会安装某种调试模块,例如 XDebug。

登台服务器是配置为更接近实时环境的机器。它将关闭显示错误并且不会安装任何调试模块。

这样做的原因是代码有一个令人讨厌的习惯,即在测试/开发环境中运行良好,但在上线时却严重失败。如果在部署代码时发生这种情况,它可能会使您的网站离线,直到您找到并解决问题。临时服务器是尝试将此类中断降至最低的一种方法。

A testing server will differ from the live environment in a number of ways. It may be configured to display a lot of error information with error_reporting set to report all or most errors and display_errors on. It will probably also have some kind of debugging module like XDebug installed.

The staging server is a machine that is configured to be much closer to the live environment. It will have display errors turned off and won't have any debugging modules installed.

The reason for doing this is that code has a nasty habit of working great on the test/development environment and then spectacularly failing to work when it goes live. If this happens when you deploy your code it can knock your website off line until you find and resolve the issue. The staging server is a way of trying to keep such disruptions to a minimum.

北城挽邺 2024-11-01 15:23:36
  • Dev:开发(开发人员工作)
  • 测试:测试(测试人员/QA 工作)
  • 登台:用户验收测试/负载测试/性能测试
  • >制作:现场
  • Dev: Development (Developer works)
  • Test: Testing (Tester/QA works)
  • Staging: User Acceptance Test/Load Test/Performance Test
  • Production: Live
你爱我像她 2024-11-01 15:23:36

测试(开发)是您为站点进行所有初始开发的第一个服务器。您所做的每项更改(以及您的档案)都应该从测试开始。

登台是 Live 的直接镜像,并且应该模拟当您推送所有内容时网站的外观。如果您只是将网站从测试中推送到上线,那么暂存是一个包罗万象的工具,可以解决您可能犯下的任何错误。例如,从测试转移到暂存将为您提供一个清晰的指示,表明您是否忘记移动某些内容(例如样式表或图像)。

Testing (development) is the first server where you do all of the initial development for the site. Every change you make (and your archives) should all start in Testing.

Staging is a direct mirror of Live, and should simulate what the website will look like when you push everything live. Staging exists as a catch-all for any mistakes you might have made if you simply pushed your site Live from Testing. For example, moving from Testing to Staging will give you a clear indicator of whether or not you forgot to move something (like a stylesheet or image).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文