English 中文(简体)
测试文件更改而不打破网站的好方法?
原标题:Good ways to test changes on files without breaking website?

每次我想在我的网站上添加新代码时, 我必须在用户之外修改文件, 以便在更新真实的文件用户看到之前调试它 。

我通常会创建一个文件的副本, 我想修改和测试它上的所有更改, 但有时这个文件只出现在另一个文件上, 我不得不创建两个副本, 有时它变得更复杂。

这通常怎么做?是否有简化程序的工具,例如测试我个人电脑上网站的工具和渴望,这样我不必每次更新文件时就上传文件到服务器。关于贝塔测试新功能的任何信息都会感激不尽。

最佳回答

大多数人有一个第二服务器( 可能是一个虚拟机器), 配置和他们的现场( 制作) 网站完全一样。 这个第二服务器的位置完全取决于您, 但是它应该使用相同的软件版本和相同的文件结构来匹配您的现场网站 。

问题回答

我也喜欢肖恩建议的中转服务器。 再说一次, 您的邮政对您的生产网络服务器和您正在使用的所有功能( 您是否在服务器上运行脚本? PHP? SQL 的某个版本? ) 并不怎么说( 您是否在服务器上运行脚本? PHP? SQL? ) 。 但对于简单的设置, 您可以运行一个 < a href=" "http:// http:// httpd. apache. org/" rel=" nofollow" 。 > Apache 网络服务器 < / a >, 或者像“ href=” http://www.apachefrienders.org/ en/xampp.html" rel="nofollow" > XAMPP服务器 < / a> 。





相关问题
Eclipse: Hover broken in debug perspective

Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable s value. Instead, hover behaves as if I were in normal Java perspective: alt text http://...

IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

Tips for debugging a made-for-linux application on windows?

I m trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I m having trouble finding the spot in the ...

Asp.Net MVC - Problem returning a model to the view

I ve recently started using the Areas functionality of the Preview2 and it was working ok until I needed to return a Model to the view. Controller: public ActionResult ForgotPassword() { return ...

Unable to generate PDB files in Visual Studio 2005

For most assemblies, I m able to generate their respective .pdb files. However, I ve got one project that isn t generating their .pdb files. I ve made sure that it on debug mode and that the project ...

热门标签