Reputation: 417
I'm trying to put our site under full version control. The site and files currently exists on the server and I need to replace those non-versioned files with a versioned copy without deleting the directories or files.
I tried using
svn checkout --force https://myrepo/trunk .
svn revert -R .
Which did the checkout however, I am using some svn externals which take the place of some existing directories. I get this error: Fetching external item into 'production/JS': svn: warning: W155007: Can't obtain lock on non-directory
JS is an external project. I know I can simply delete the existing directories and do an update or checkout and everything will be there, but I don't want to take the site down long enough to do the checkout.
So is there a magical spell I can cast on svn to get it to replace my existing directories with these externals?
Upvotes: 3
Views: 2791
Reputation: 7934
I'd recommend not serving your site out of an svn working copy. A simple deployment script (run by your CI server) could package up your source, (copy/extract/install) on your server atomically. How this is works is going to be highly dependent on your site/app. you could start by symlinking wwwroot to site-1.0.0 then
This buys you a few things:
I'm sorry that this doesn't directly answer your question, but I felt it was worth mentioning.
Upvotes: 1