I use subversion with my websites. Up until now this has meant creating a new repo for each of my sites. However this is wholly inefficient as it means me lugging around the whole wordpress source for each of the sites.

It also has meant that I have to copy plugins between repos and thus duplicate the code each time.

So what I wanted to do was have a repo which only really contained my theme file (and possibly other site-specific directories such as site-specific plugins). This would then have a link to the tagged wordpress repository for the wordpress version I would be building against and a link to my other shared plugin repos, so that in order to release or deploy for testing I would only have to do a svn checkout svn://path/to/site/repo and it would download the whole wordpress repo, all my plugins and all the site-specific stuff too.

Is there any way to do this? Or is this a bad idea? Is there an easier/better way to do this at all?

How do others do it?

link|improve this question

67% accept rate
feedback

2 Answers

I have one multi-site setup with WP pulled down from SVN, to update all sites all I have to do is the svn sw ... command and visit the upgrade page in wp-admin.

If all the sites are on the same server I'd recommend looking into multi-site.

link|improve this answer
I don't think that multi-site is a good option for us. Its very useful to have a series of different installs for our clients. It means that if any of our clients suddenly command more server resources we can move them with (relative) ease to an amazon EC cloud. Or if they wish to deploy to their own server in the future we can benefit from that as well. Unless I have misunderstood multi-site this would suggest one wordpress installation no no ability to easily migrate single sites. Do all sites have their own mysql databases? Or are they all amalgamated? – Thomas Clayson Dec 15 '11 at 14:21
Similarly updating each site separately allows for us to assess any potential incompatibilities with the new version on a more localised case, and lastly having a separate hosting account on our dedicated server for each client means that we can build other web apps and infrastructure around their wordpress installation. – Thomas Clayson Dec 15 '11 at 14:23
feedback

Use NetBeans... When you check out a copy from SVN, you can directly use it as source files for your project, and at the same time sync it with your server. NetBeans keeps a neat track of new files, changed files, you can compare revisions, commit, update etc. It's awesome, no command prompt needed (except for checkout/export/import which you do from command line/terminal).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.