|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| 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
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
Create a folder, right click and from the context menu select create repository here.
|
|
|||
|
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 |
|
|||
|
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.
|
|
|||
|
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 |
|
|||
|
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:
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. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
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 |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |