Home Backend Development PHP Tutorial 问个svn的有关问题(svn提交后,在服务器端checkout文件到生产环境)

问个svn的有关问题(svn提交后,在服务器端checkout文件到生产环境)

Jun 13, 2016 pm 01:16 PM
checkout export rsync svn update

问个svn的问题(svn提交后,在服务器端checkout文件到生产环境)
svn提交后,在服务器端checkout文件到生产环境,如何只checkout那些修改过的文件,而不是整个目录都checkout出来?

------解决方案--------------------
不懂,同问
------解决方案--------------------
svn export
------解决方案--------------------

探讨

引用:

svn export

嗯,如何只导出修改过的文件呢,比如我只修改了2个文件,如果整个版本库都到处去,执行时间有点久

------解决方案--------------------
svn本身没有这个功能,要写脚本或者程序来取。

如果你用TortoiseSVN的话,可以通过图形界面来操作
1. 选择两个版本,右键Compare revisions
2. 选择所有差分文件,右键export selection to...
------解决方案--------------------
增量方式应该用svn update 是 更新到最新版本
如果是全部检出,用svn checkout
------解决方案--------------------
就是啊

探讨

增量方式应该用svn update 是 更新到最新版本
如果是全部检出,用svn checkout

------解决方案--------------------
我的做法是:在生产环境的服务器上保留一个 Working Directory,每次部署时都 update 到这里,然后再 rsync 到发布目录中去。


――――――――――――――――――――――――――――――――
基于CSDN论坛提供的插件扩展功能,自己做了个签名档工具,分享给大家,欢迎技术交流 :)
------解决方案--------------------
去你需要提交的目录进行提交。
------解决方案--------------------
svn+rsync做为上线过程是不错的选择。很简单确很实用。
------解决方案--------------------
svn update
------解决方案--------------------
目前 我们用的也是 svn+rsync 然后就是加 cron
------解决方案--------------------
不直接update就用楼上们说的rsync,会根据文件时间只传送修改过的文件

探讨

引用:

增量方式应该用svn update 是 更新到最新版本
如果是全部检出,用svn checkout

你是说直接update到生产环境?

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Fix: Google Chrome update check failed with error code 3: 0x80040154 Fix: Google Chrome update check failed with error code 3: 0x80040154 Apr 13, 2023 pm 05:46 PM

Google Chrome is one of the most popular browsers in the world and many users prefer to use it as the default browser on their Windows PCs. Chrome offers a wide range of features that make the browsing experience enjoyable and effortless, and therefore, it remains one of the most trusted browsers. But just like any other browser, even Chrome has its own shortcomings, and it's equally prone to bugs and glitches when you need it most. One such error is Error Code 3: 0x80040154, which occurs while checking for Google Chrome updates. The error message reads "An error occurred while checking for updates. The update check failed to start (Error code 3: 0x80080005) or (Error

How to use SVN for version control in PHP development How to use SVN for version control in PHP development Jun 27, 2023 pm 01:39 PM

Version control is a very common operation in PHP development, and the most commonly used tool is SVN (Subversion). It can easily manage historical versions of code and code updates during collaborative development. The following will introduce how to use SVN for version control in PHP development. 1. Install the SVN client and server. First, you need to install the SVN client and server. The SVN client can download the corresponding version from the SVN official website and install it, while the server needs to be built by yourself. The specific method can be

How to enable/disable VS Code automatic updates How to enable/disable VS Code automatic updates Apr 28, 2023 am 09:28 AM

If you are using Visual Studio Code (VSCode) and thinking about how to disable its automatic software updates and how to disable the automatic updates of its extensions, then read this article. If you don't use VSCode often, open the editor after a long period of time and want to enable automatic updates, this article will also guide you in doing so. Let us discuss in detail the different ways to enable or disable VSCode automatic updates. Table of Contents Method One: Use Settings to Enable/Disable VSCode Automatic Updates Step 1: Open VS Code and click the gear-shaped symbol in the lower left corner. Step 2: Click Settings in the list that appears. Step 3: Type update in the search bar and hit enter. Find Updates: Pattern 4

'The requested module does not provide an export named' Error appears in Vue Cli - how to solve it? 'The requested module does not provide an export named' Error appears in Vue Cli - how to solve it? Aug 20, 2023 pm 07:25 PM

'Therequestedmoduledoesnotprovideanexportnamed'Error appears in VueCli – how to solve it? During the development of the Vue project, we may encounter the error message 'Therequestedmoduledoesnotprovideanexportnamed'. This error message usually appears when introducing third-party components

Java SVN: the guardian of the code repository, ensuring code stability Java SVN: the guardian of the code repository, ensuring code stability Mar 09, 2024 am 09:20 AM

Introduction to SVN SVN (Subversion) is a centralized version control system used to manage and maintain code bases. It allows multiple developers to collaborate on code development simultaneously and provides a complete record of historical modifications to the code. By using SVN, developers can: Ensure code stability and avoid code loss and damage. Track code modification history and easily roll back to previous versions. Collaborative development, multiple developers modify the code at the same time without conflict. Basic SVN Operations To use SVN, you need to install an SVN client, such as TortoiseSVN or SublimeMerge. Then you can follow these steps to perform basic operations: 1. Create the code base svnmkdirHttp://exampl

KDE Plasma 6.1 brings many enhancements to the popular Linux desktop KDE Plasma 6.1 brings many enhancements to the popular Linux desktop Jun 23, 2024 am 07:54 AM

After several pre-releases, the KDE Plasma development team unveiled version 6.0 of its desktop environment for Linux and BSD systems on 28 February, using the Qt6 framework for the first time. KDE Plasma 6.1 now comes with a number of new features t

How to configure nginx+rsync+inotify to achieve load balancing How to configure nginx+rsync+inotify to achieve load balancing May 11, 2023 pm 03:37 PM

Experimental environment front-end nginx: ip192.168.6.242, reverse proxy for the back-end wordpress website to achieve complex balance Back-end nginx: ip192.168.6.36, 192.168.6.205 all deploy wordpress, and use the same database 1. In the back-end Configure rsync+inotify on the two WordPress servers. Both servers enable the rsync service and synchronize data to each other through inotify. Configure the server 192.168.6.205 below: vim/etc/rsyncd.confuid=nginxgid=nginxport=873ho

Detailed explanation of how to install and set up the EclipseSVN plug-in Detailed explanation of how to install and set up the EclipseSVN plug-in Jan 28, 2024 am 08:42 AM

Detailed explanation of how to install and set up the EclipseSVN plug-in Eclipse is a widely used integrated development environment (IDE) that supports many different plug-ins to extend its functionality. One of them is the EclipseSVN plugin, which enables developers to interact with the Subversion version control system. This article will detail how to install and set up the EclipseSVN plug-in and provide specific code examples. Step 1: Install the EclipseSVN plug-in and open Eclipse

See all articles