Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Subversion and web development

Tags:

svn

ftp

I'm introducing Subversion into our web shop. I want to want the checked in files to be uploaded into the server via FTP (and as they get use to Subversion, via SFTP). The files are sent to a release candidate page for testing purposes. A script can be called to move the files into production.

My question is this: How do you transfer the files to the server via Subversion? Is there a script I can add that will do the transfer when the files are checked in?

like image 547
MrValdez Avatar asked Aug 18 '08 03:08

MrValdez


People also ask

How does Apache Subversion work?

It converts a directory with a project into a working copy of a newly-created local Subversion repository. As result you can modify the files in the working copy and track the changes in your local repository. Commit the project's files: $ svn commit -m "Initial import."

What is SVN in computer science?

SVN stands for Subversion. So, SVN and Subversion are the same. SVN is used to manage and track changes to code and assets across projects.

What is Subversion repo?

A Subversion repository — abbreviated SVN repository — is a database filled with your code, files, and other project assets. A SVN repository maintains a complete history of every change ever made.


1 Answers

If you have shell access to your sever, and SVN installed on it (or the ability to install SVN), then your best bet may be just to bypass FTP entirely.

How we deploy our apps is (simplified)

  • Developers write code and check it into trunk
  • Periodically, when trunk is stable, we will take a snapshot of it as a tag
  • On the server, svn checkout the tag

If any changes need to be made to the server (or directly on the live server itself) it is trivial to use subversion to sync the code

like image 53
Orion Edwards Avatar answered Oct 23 '22 16:10

Orion Edwards