SVN on development server

Hi I'm new to SVN and would like to know a couple of things, or if someone can point me in the right direction either advice or some sites to read.

I have subversive and turtle installation installed and I have subversive installation but I would like to know how I can work with files in my htdocs folder from my machine and then commit files and once I complete them they will be moved to my htdocs folder and ready to be viewed when I go to localhost.

Thanks in advance.

+1


a source to share


4 answers


This question is not entirely clear, but I believe you want to work with a copy of your data in the htdocs folder on your local machine, view it through a web server on your local machine, and when you're happy, commit the changes and roll it out to the production machine.

If so, congratulations! This is a great way to work.

This is exactly what we do (in terms of running local versions of all dynamic applications). We commit on a regular basis and then to make a release just go to the server and do the svn update while checking the htdocs (or whatever) on the server. This could be automated with a cron job, but we'd like to do it manually as it makes sure the supervisor gets a sanity check first and if anything changes with the update, there is someone there to handle it.



To start:

  • create htdocs and some files on your development machine.
  • svn import

    this directory
  • go to your production machine and svn checkout

    htdocs directory
+4


a source


I'm not sure if you understand what SVN does for you. It keeps a history of the changes you make to your files through the checkpoints you create with each commit. The files themselves remain where they are in your file structure.



It looks like you are looking for some sort of deployment tool that will put your working files on your development server (on your machine), ready to test, and not for SVN. I'm not sure what solution there might be, but I'm sure someone here can give you the answer you need.

0


a source


Seems too small for a full blown CI like CruiseControl.NET with Nant. The easiest way is to create a batch file that both commits and copies to htdocs. Sort of

svn ci %message
robocopy . c:\htdocs

      

Call it commit.bat and call it with commit "this is my message"

0


a source


On commit, the files are uploaded to the internal repository of the SVN server and are not directly displayed. However, any client can update its content and the changes will be visible.

Anyway, start with the SVN book . This article article is also very helpful.

0


a source







All Articles