Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3614990
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:19:04+00:00 2026-05-18T22:19:04+00:00

I have a website say www.livesite.com which is currently running. I have been developing

  • 0

I have a website say http://www.livesite.com which is currently running. I have been developing a new version of the website on my local machine with http://localhost and then committing my changes with svn to http://www.testsite.com where I would test the site on the livesite.com server but under another domain (its the same environment as the live site but under a different domain).

Now I am ready to release the new version to livesite.com. Doing it the first time is easy, I could just copy & paste everything from testsite.com to livesite.com (not sure its the best way to do it).

I want to keep testsite.com as a testing site where I would push updates, test them and once satisfied move to livesite.com but I am not sure how to do that after the new site is launched.. I don’t think copy pasting the whole directory is the right way of doing it and it will break the operations of current users on the livesite.com.

I also want to keep my svn history on testsite.com. What is the correct way of doing this with SVN ? Thank you so much!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T22:19:05+00:00Added an answer on May 18, 2026 at 10:19 pm

    Other answers mentioning Hudson or Weploy are good. They cover more issues than what follows. That said, the following may be sufficient.

    If you feel that’s overkill, here’s the poor-man’s way of doing it with SVN and a little creative sysadminning.

    Make your proudction document root a symlink, not an actual directory. Meaning you have something like this:

    /var/www/myproject-1-0-0
    /var/www/myproject-1-1-0
    /var/www/myproject-1-1-1
    /var/www/html -> myproject-1-1-1
    

    This means you can check out code onto production (say, myproject-1-1-2) without overwriting stuff being served. Then you can switch codebases near-instantly by doing something like:

    $ rm html && ln -s myproject-1-1-2 html
    

    I’d further recommend not doing an svn checkout/svn export of your trunk on the production box. Instead, create a branch ahead of time (name it something like myproject-X-Y-Z). That way if you need to do some very stressful tweaking of production code, you can commit it back to the branch, and merge it back to trunk once the fire is extinguished)

    I do this a lot, and it works quite well. However, it has some major drawbacks:

    Mainly, you have to handle database migrations, or other upgrade scripts, all by yourself. If you have scripts (plain-old-SQL, or something more involved), you need to think about how best to execute them. Downtime of hopefully-just-a-minute might not be a bad idea. You could keep a “maintenance site” around (/var/www/mainenance), and point the symlink there for a few moments if you needed to.

    This method is not nearly as cool as Weploy, for example, but for relatively small projects (running on a single server, with not-huge databases), it’s often good enough, and dead simple.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lets say I have a website www.mySite.com and there are a lot of pages
Lets say that you have websites www.xyz.com and www.abc.com. Lets say that a user
Let's say I have a main folder in my website named test which contains
Say my URL address is www.example.com I want to have an if statement in
Let say that I have a website with some information that could be access
Let's say that I have a Flash website where you could create an avatar
I have two websites, let's say they're example.com and anotherexample.net . On anotherexample.net/page.html ,
I have some website which requires a logon and shows sensitive information. The person
Let's say you have a website contest programmed in PHP, and the user must
Let say I have a website that allows users to send articles on that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.