LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Setting up CVS, where should I put my repository? (https://www.linuxquestions.org/questions/programming-9/setting-up-cvs-where-should-i-put-my-repository-196204/)

webvandals 06-21-2004 09:11 PM

Setting up CVS, where should I put my repository?
 
I develop websites, and have a zillion tarballed backups scatterred all over the place. So, I think it's time to set-up a CVS repository and get organized. But should I setup my repository locally or on my web server?

Here's my setup:
1) My main Linux desktop at home
2) My Linux laptop
3) My dedicated Web server (also Linux, I have root access)

What I'm thinking to do is set-up my repository on the web server, so I can always have access to the latest CVS updates, wherever I am. Basically, I just want to be able to keep my laptop in sync with my desktop. And, when I get to a point where I'm happy with my updates, I want to be able to easily update the live site to the latest CVS.

Is it a good idea to keep my repository on the web server?

General advice would be *very* appreciated :-)

sean

eric.r.turner 06-22-2004 09:12 AM

Only put it on your web server if you're able to set up some sort of encrypted authentication (e.g. kerberos.) The default pserver authentication uses crypt (insecure.) My CVS server still uses crypt, but I have it set up on a separate box behind my firewall.

Updating the web server can be as simple as using "cvs export", then uploading it to the web server.

webvandals 06-23-2004 04:14 AM

Thanks Eric. I've taken your advice and set it up locally instead. But now, after many hours :-( I cannot for the life of me figure out how to gain write permissions to the repository.

Everytime I try to commit, I get this error:
---------------
cvs -f commit -l -m 'ok' 'datafly.webprj' 2>&1
cvs [server aborted]: "commit" requires write access to the repository
[Exited with status 1]
---------------

Here's my permissions:
---------------
drwxrwx--x 4 cvs cvs 4096 Jun 23 17:27 cvs

and my CVSROOT/passwd file looks like this:
---------------
sean:[MyEncryptedPassword]:cvs


I can read, but cannot write. The user "sean" is also in the writers file.

Please help...


All times are GMT -5. The time now is 06:26 AM.