Newbie question about repositories & best practices

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
bbohlen
Posts: 2
Joined: Mon Jun 21, 2004 4:42 pm

Newbie question about repositories & best practices

Post by bbohlen » Mon Jun 21, 2004 4:52 pm

Hello, I am an administrator evaluating software for source code control. None of my developers use Visual Studio, we are a J2EE shop.
We'd like to test this out on some existing web applications, but I am new to source control software so I'm not sure where to start.
We have three environments: DEV, TEST, and PROD...which should contain the same files just on different servers. Can I set up a Vault repository for each webapp and each environment, and have the file changes committed to the actual location on the server? Everything I've read so far about repositories indicates that the files are stored somewhere on the Vault server (can't seem to figure out where though).

Ideally, we'd like our developers to each have Working Directories (configured on the Vault client) on their local machines. They would then CheckIn/CheckOut these files to the DEV repository for that webapp. That would then put the file where it belongs on the DEV server.
Once they've tested it initially in DEV, those changes could be propagated to the TEST environment, where it would get QA'ed. Finally they would push the changes to the PROD servers.

jclausius
Posts: 3702
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Re: Newbie question about repositories & best practices

Post by jclausius » Mon Jun 21, 2004 8:31 pm

bbohlen wrote:We'd like to test this out on some existing web applications, but I am new to source control software so I'm not sure where to start.
First off, I'd recommend the following links: Note, you can see the full list of KB articles here: http://support.sourcegear.com/viewtopic.php?t=792
bbohlen wrote:We have three environments: DEV, TEST, and PROD...which should contain the same files just on different servers. Can I set up a Vault repository for each webapp and each environment, and have the file changes committed to the actual location on the server? Everything I've read so far about repositories indicates that the files are stored somewhere on the Vault server (can't seem to figure out where though).
Vault is a Version Control System. As changes are committed to your sources, the Vault server interprets the changes and stores things within the SQL Server database. The only time actual files exist on disk is when a user issues a "GET" command or you configure the Vault server to "shadow" the source tree's folders to disk (Shadow Folders).
bbohlen wrote:Ideally, we'd like our developers to each have Working Directories (configured on the Vault client) on their local machines. They would then CheckIn/CheckOut these files to the DEV repository for that webapp. That would then put the file where it belongs on the DEV server.
I'm not all that familiar with the J2EE world. My last experience was with Tomcat about four years ago. I believe that environment required a build of our JSP pages. Is that still the case, and does that apply to your case?

If so, I would recommend at creating a "common build script". This script would do a GET of the latest, build and copy the compiled byte code to a known destination for DEV. I don't believe ant contains native Vault commands. Does it support Command Line execution? If so, you may use the Vault Command Line Client to retrieve files.

If a build is not required, you could alternatively configure shadow folders to push the files directly to the web server.
bbohlen wrote:Once they've tested it initially in DEV, those changes could be propagated to the TEST environment, where it would get QA'ed. Finally they would push the changes to the PROD servers.
Again, you can do this from a Push standpoint using Shadow Folders, or a Pull with a script and the Command Line Client.

HTH
Jeff Clausius
SourceGear

Post Reply