Using Subversion to Seamlessly Update & Merge Web Sites and Web Applications使用颠覆无缝地更新与合并的网站和Web应用程序
I wanted a seamless procedure to update web sites and web applications without compromising security.我想无缝程序,以更新的网站和网页应用程式而不损害安全。 The development server is under a firewall and so is the production server.发展服务器是根据防火墙等,是生产服务器。 Also the changes should be merged bi-directionally.也变化,应合并双向定向。 I had few options like subversion or unison.我有几个选项一样,颠覆或一致。 I chose subversion because of greater familiarity and also because all of our source code is maintained in Subversion.我选择了颠覆罪,因为更熟悉,还因为我们所有的源代码是保持在颠覆罪。 Here are the simple steps which you too can use to keep your production and development server in sync.这里是简单的步骤,其中,你也可以使用让您的生产和发展的服务器同步。
The requirements are:要求是:
1. 1 。 Subversion should be installed on both the machines颠覆应安装在机器
2. 2 。 You should be able to allow certain IP addresses in your development server machine您应该能够允许某些IP地址在您的开发服务器机
3. 3 。 Apache running on development server and configured to allow access to Subversion repository.*阿帕奇上运行的发展,服务器和设定为允许使用Subversion知识库.*
*My development server runs Apache which is configured to allow access to Subversion repository. *我国发展的服务器运行的Apache是设定为允许使用Subversion知识库。 This is simple to setup and so I will not dwell upon it.这是一个简单的安装程序,所以我不打算赋予它。
The firewall is configured separately for two subnets.防火墙配置分别为两个子网。 The subnet identified as internet is not allowed to access any internal servers.子网确定为互联网是不容许访问任何内部服务器。 However I added the IP address of my production server as a trusted host which essentially punched a hole in the firewall to allow my production server to access my development server.不过,我补充的IP地址,我的生产服务器作为一个值得信赖的东道国,这基本上是打了一个洞,在防火墙,以允许我在生产服务器上访问我的发展服务器。
With this simple setup all that is required is to checkout the files on the production server.有了这个简单的安装所有需要的是结帐的文件生产服务器。 I can make changes to the files from any development machines or even the production machine.我可以更改这些文件从机器的任何发展,甚至生产机器。 After testing the files are committed and then the production server is updated with a single command (svn update).测试后的档案承诺,然后在生产服务器上更新,与一个单一的命令( svn更新) 。
BTW: If you are unfamiliar with Subversion you may find it easier to understand with my的BTW :如果您不熟悉颠覆您可能会发现更容易理解与我 5 minutes guide to subversion 5分钟指南颠覆 . 。
The downside of this approach is that subversion creates tons of files for its own use (in .svn directories) which consumes space and may create problems for web hosting palns with low disk space.坏处这种做法是颠覆创造吨的文件供自己使用的(在。 svn目录)消费的空间和可能造成的问题,虚拟主机palns低磁盘空间。 For an alternative you can try using Unison.一种替代,您可以尝试使用步调一致。
Note: The security of the process can be further improved by transferring the data through ssh tunnel only.注:安全的过程中可以进一步改善,由传输数据,通过SSH的隧道只。
Filed under提起下 Headline News头条新闻 , , How To如何 , , Linux Linux的 , , Microsoft微软 , , Open Source Software开放源码软件 , , Tech Note技术说明 , , Technology技术 , , Web网页 , , Web Hosting虚拟主机 , , Web Services Web服务 | |
| |
RSS 2.0 2.0 | |
Trackback Trackback跟踪 this Article |此文章|
Email this Article电子邮件此文章
You may also like to read您也可以想读 |



