iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-25-2008, 02:30 PM
WebProWorld Veteran
 
Join Date: Jul 2003
Location: Spain
Posts: 343
computergenius RepRank 1
Default Just one more thing with subversion

I have had some excellent help here previously with Subversion. I need a little more advice though.

I want to share some code through about half a dozen sites - the sites will be different because they draw different data from a database.

The sites are all on the same shared server. I also have a local copy of Apache/PHP windows working on my Vista PC. I am the only programmer for this project.

Where should I put the Subversion repository? On the server, or on the local Vista PC (presumably under Apache)?
__________________
Pete Clark
Got any spare time? Anything you need? Barter in Spain at http://BarterWithBart.com
Reply With Quote
  #2 (permalink)  
Old 12-25-2008, 03:15 PM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default Re: Just one more thing with subversion

Put it on the server then anyone can access it providing permissions are correct.

Put it local and only you can access it, also local you don't need apache or anything else, tortoise svn is quite capable of creating and maintaining repositories in folders.

Therefore if only you need the code keep it on the PC if others need access put it on the server. Only publish what you have to to live servers it's more secure that way.
Reply With Quote
  #3 (permalink)  
Old 12-25-2008, 06:34 PM
WebProWorld Veteran
 
Join Date: Jul 2003
Location: Spain
Posts: 343
computergenius RepRank 1
Default Re: Just one more thing with subversion

Thanks for that, local it is then...

I will never be giving all the code to anyone else to work, I may give small sections out but never the whole thing.

I was surprised to learn that Tortoise would do it without Apache running (although in fact, Apache is running as a service nearly all the time)

I need to search to find how to do that...
__________________
Pete Clark
Got any spare time? Anything you need? Barter in Spain at http://BarterWithBart.com
Reply With Quote
  #4 (permalink)  
Old 12-25-2008, 06:47 PM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default Re: Just one more thing with subversion

Create a folder, right click and from the context menu select create repository here.
Reply With Quote
  #5 (permalink)  
Old 12-26-2008, 05:04 AM
WebProWorld Veteran
 
Join Date: Jul 2003
Location: Spain
Posts: 343
computergenius RepRank 1
Default Re: Just one more thing with subversion

Thanks, Speed, I had got that far, but can't see how to "associate" the working copy with the repository, so that when I Add via Tortoise, it goes to the correct repository.

I am already using one copy of Subversion, on another server, for another project, but this was set up for me.
__________________
Pete Clark
Got any spare time? Anything you need? Barter in Spain at http://BarterWithBart.com
Reply With Quote
  #6 (permalink)  
Old 12-26-2008, 05:43 AM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default Re: Just one more thing with subversion

Once you have a repository use the import function to import your code. Once you've imported create a new folder which will be your working copy and export from subversion to it.
Reply With Quote
  #7 (permalink)  
Old 12-26-2008, 06:17 AM
WebProWorld Veteran
 
Join Date: Jul 2003
Location: Spain
Posts: 343
computergenius RepRank 1
Default Re: Just one more thing with subversion

I don't know why I have this block on Subversion, I just seem to find it so complicated! Yet, I program all sorts of stuff, without this kind of confusion!

I have my code that I have written, which I assume is "working copy", in c:\develop\proj1. I created a new folder, c:\develop4\svnproj1.

I went into the svnp1 folder, right clicked to bring up TortoiseSVN, then "create repository here". Then I couldn't find a way to import the files from proj1. Eventually, I went to proj1, and with TortoiseSVN, imported the files.

proj1 doesn't have any of the files marked (I would expect them to have a green tick). Repo-browser shows me all the files in file:///C:/develop/svnproj1, but I can't see any of them with Windows Explorer.

So now I copy my original work files to a safe folder, then export all the files from svnproj1, and the green ticks have appeared. So I guess that I have it now. And I think that is what you were suggesting.

One last question - how do I get the files from the repository (svnproj1) to the online server?
__________________
Pete Clark
Got any spare time? Anything you need? Barter in Spain at http://BarterWithBart.com
Reply With Quote
  #8 (permalink)  
Old 12-26-2008, 06:31 AM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default Re: Just one more thing with subversion

After import the imported files are as were it does not change the source to a working copy. You do need to do as you have done and check the files out into a blank folder to get your working copy.
Quote:
One last question - how do I get the files from the repository (svnproj1) to the online server?
Either export to a temp folder then upload with FTP etc.

Or you can look at hook scripts to auto publish.

Or you can make the repository available to the web server and run a checkout.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Subversion Issues computergenius Web Programming Discussion Forum 15 12-25-2008 03:05 PM
Outbound Links on the Home Page: Good Thing or Bad Thing? mjtaylor Google Discussion Forum 11 10-30-2007 05:57 PM
No wedgies with Subversion 1.4 dutter Web Programming Discussion Forum 0 09-19-2006 01:23 PM
Do This One Thing Every Day WPW_Feedbot Marketing Strategies Discussion Forum 0 08-17-2005 10:30 AM


All times are GMT -4. The time now is 11:34 PM.



Search Engine Optimization by vBSEO 3.3.0