LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-16-2011, 01:59 PM   #1
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Rep: Reputation: 34
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!
 
Old 01-16-2011, 02:40 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
Old 01-17-2011, 02:43 AM   #3
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by acid_kewpie View Post
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?
 
Old 01-17-2011, 04:35 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copy svn working dir without svn hidden dirs and files? erinspice Linux - Software 4 03-29-2011 05:58 PM
Svn client on FC10: remote SVN server update errs: timed out waiting for srvr ... Amol Tupe Linux - Software 0 10-01-2010 03:25 AM
SVN: Could not open requested SVN filesystem rfkrocktk Linux - Server 1 11-24-2009 04:28 PM
anon svn read-only over apache: '.svn/entries': No such file hedpe Linux - Software 2 04-29-2009 05:31 AM
svn checkout -bash svn command not found Anauj0101 Linux - Newbie 6 04-20-2008 05:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration