PHP 的登台与测试服务器
登台服务器和测试服务器有什么区别?
What is the difference between a staging and testing server ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
登台服务器和测试服务器有什么区别?
What is the difference between a staging and testing server ?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
对我来说,临时环境是一种测试环境。
登台环境(服务器、软件等等)的要点是它应该非常接近生产环境:
基本上,登台环境应该允许检查应用程序是否在类似生产的情况下工作。
至于“测试”环境,我通常用这个词来表示不止一种环境:
请注意,前两个环境通常比生产服务器(以及临时服务器)拥有更多的调试/分析/分析工具。
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 :
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 :
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.
测试服务器在很多方面与实际环境有所不同。它可以配置为显示大量错误信息,并将 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.
测试(开发)是您为站点进行所有初始开发的第一个服务器。您所做的每项更改(以及您的档案)都应该从测试开始。
登台是 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).