SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2005
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Implementing Subversion on a Live Site

    Hey everyone,

    I've setup subversion on my development server and now have an updated set of code I want to push to the live server. The live server has unversioned code, and I would like to use svn update to send the code from the development server to the live server. How can I force svn to overwrite the unversioned copies of the files that are already present? Is there another way to implement subversion no the live server that would result in less risk / small downtime?

    Thanks for any input.

    Kevin

  2. #2
    SitePoint Wizard chris_fuel's Avatar
    Join Date
    May 2006
    Location
    Ventura, CA
    Posts
    2,751
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd really not recommend subverison on a live site. If a conflict somehow occurs on your main page for example, your main page will get broken. Also, the presence of .svn directories just means one more thing for the web server to have to deal with. The best method in my opinion is to tarball up your changes , then expand that into the live server directory, or if it's just one file, scp it over.

    Some people also use rsync to synchronize but you'll need to take some extra steps to lock rsync down to outsiders.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •