Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-16-2011, 02:59 PM
|
#1
|
Member
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230
Rep:
|
Config websites with svn
Hi all,
I have just configured svn on my server and i wonder hot to config it for my two web sites. The test dir contain the following things:
conf dav db format hooks locks README.txt
I have created test.txt file and commit it. It is uploaded but i can't find where. It is not in the folders for the repository (or i miss it ?). I used --fs-type=fsfs option when creating the repo.
I want to create svn for the both sites i have. They are in the www/kdelchev and www/webtut folders.
How can I config the svn so the both folders are included in separate repos ? Shold be that for the www folder?
Thanks in advance!
|
|
|
01-16-2011, 03:40 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
I *think* you're not clear on what svn is / does. You can't see the files your uploaded in the filesystem. As I understand it, with fsfs each *revision* is a file, i.e. all changes made during that one commit, not per file. So you ca't go "find" a file, from the svn perspective it's exactly where you put it, but that's in svn, not the filesystem you are browsing.
You say you want svn for 2 sites? Does this mean you want to store 2 different sites in your SVN repo, or a different SVN repo for each site to serve? It sounds like the former, in which case, just pick different locations in SVN to store them. and check out the relevant repo locations into the doc root of each site. You're not restricted to any specific architecture or layout at all. You'll be mapping an SVN path to a file system path, and anything above them doesn't matter.
|
|
0 members found this post helpful.
|
01-17-2011, 03:43 AM
|
#3
|
Member
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230
Original Poster
Rep:
|
Quote:
Originally Posted by acid_kewpie
I *think* you're not clear on what svn is / does.
|
You are right. I use svn from 2 weeks for a project at work and I am not in details woth the upload, but the code for the project is in svn. I wanted to make the same for my sites to update them easily with svn update.
So that is not possible? And I have to upload the code via ftp every time I changed it?
|
|
|
01-17-2011, 05:35 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
That's not even vaguely what I said.
It is *possible* for sure, in that it'll provide the end result you want, but you're not asking the right question in the first place. How you seem to want to use it doesn't make sense in the same way.
|
|
0 members found this post helpful.
|
All times are GMT -5. The time now is 07:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|