简体   繁体   English

将站点从演示服务器转移到实时服务器

[英]Transfering site from demo server to live server

mostly i come across a situation where i have to move files between two servers. 大多数情况下,我遇到了必须在两台服务器之间移动文件的情况。 I usually test my project live in one testing server online and client checks the websties functionality and all. 我通常会在一台测试服务器上在线测试我的项目,而客户端会检查网站功能以及所有功能。 After completing all the task i again have to transfer the contents of the testing server to the live server along with data too... 完成所有任务后,我又不得不将测试服务器的内容以及数据也转移到实时服务器中。

So for that process i download all the files uploaded by client in the testing server, backup database and again upload the database to new server and client files too. 因此,对于该过程,我将客户端下载的所有文件下载到测试服务器中,备份数据库,然后再次将数据库上传到新的服务器和客户端文件中。 if the client has uploaded less files then it is no prob but in case of large files i really waste my time copying files from one to next. 如果客户端上传的文件较少,则没有问题,但是如果文件很大,我真的很浪费时间将文件从一个复制到另一个。

so how can i make the same process in less time even with large files 所以即使有大文件我怎么也可以在更短的时间内完成相同的过程

We use SVN which is hosted on our server. 我们使用服务器上托管的SVN。

When we want to port the site to a test area we have a test domain name setup which is hosted on the server, and we can just run svn update on a subdomain and it will just copy all of the files across. 当我们想将站点移植到测试区域时,我们在服务器上托管了一个测试域名设置,我们可以在子域上运行svn update ,它只会复制所有文件。

When we go live assuming the domain is hosted on the same server we just run svn update on that folder as well. 当我们假设域托管在同一台服务器上时,我们也只在该文件夹上运行svn update Very quick and easy. 非常简单快捷。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM