How to configure SVN with files located in the directory structure / htdocs

I have a little problem wrapping my head around how to configure Subversion when working with php files. I save all my files in the c: \ www [nameOfProject] \ htdocs directory and configure virtual hosts for each project. (c: \ www \ project1 \ htdocs \ index.php are displayed at http: //localhost/project1/index.php ).

How do you guys work with SVN? Let's say I have c: \ svnrepos \, where I store every repo for every project. Now, ideally, I would like to check from the repo in c: \ svnrepos \ project1 with c: \ www \ project1 right? But the docs say to do it in an empty directory, but how can I view my code and then not move it somewhere else in the first place?

Thanks for helping the guys!

+3
source share
4 answers

One way to do this effectively is to make your development by checking the trunk, say c: \ www \ preview \ project1 and checking it using the appropriate virtual host or other URL.

As you earn it, you will check for different versions of the body. When it matures to go to your "real" host / url, then you

  • Create a branch or tag to reflect this (e.g. /rel.1 branches) and
  • Complete the (svn co) branch in c: \ www \ project1 \ htdocs

After that, you can make urgent corrections of errors on the /rel.1 branches and merge them back into the current work under the body. When another release is ready, you

  • (, /rel.2)
  • ( svn) c:\www\project1\htdocs

, , , , .

,

  • c:\www\preview\project1
  • c:\www\preview\project1,
  • , , svn c:\www\project1\htdocs
  • c:\www\preview\project1
+4

c:.

c:\svnrepos\project1 check to c:\www\project1 .

+2

, . c:\svnrepos\project1, c:\www\project1, .

...?

, . , c:\www\preview\project1 .

+2

, C:\www\project1, , , , , ( C:\www\project1 , C:\www\project1 )

However, if you do not need both new changes and the original version of the application available at the same time, you can always use SVN to update the working copy C:\www\project1with the changes you made. If they don't like you, just revert the working copy back to an earlier version.

+1
source

Source: https://habr.com/ru/post/1703541/


All Articles