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 250609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:31:31+00:00 2026-05-11T21:31:31+00:00

would you move files from DEV to Prod or QA to Prod? How do

  • 0

would you move files from DEV to Prod or QA to Prod? How do you use svn export in your environment? Any handy scripts that you can share?

I looked at other threads but they do not have enough information.

I want to know the best practice to push app/db updates to production environment from QA or DEV or Staging. This is a LaMP environment.

  • 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-11T21:31:31+00:00Added an answer on May 11, 2026 at 9:31 pm

    Well, first off, I wouldn’t move files directly from dev or qa to production. Like your question implies, I would deploy a tagged release from your SCM (subversion, in this case) directly to your respective environments.

    Broadly speaking, I would recommend looking in to a specialized deployment tool, like Capistrano. There is a bit of an up-front time investment to learning the tool and setting up your deploy scripts, but the power of being able to say “cap deploy qa” or “cap rollback production” later on to change your running version in a matter of seconds will a) more than repay that initial time investment, and b) save your butt when things go wrong.

    To directly address your question, though, if you were doing it by hand I would recommend a process something like this (with sudo inserted where necessary):

    1. Have a /opt/my_app/ directory with multiple subdirectories containing different versions, and a “current” symlink to whichever one is live.
    2. Point your apache configuration to /opt/my_app/current
    3. To roll out a new version, run something like “svn export https://my_repo/my_app /opt/my_app/1.2.3” (assuming the new version was 1.2.3).
    4. Change the symlink: “rm /opt/my_app/current; ln -s /opt/my_app/1.2.3 opt/my_app/current“
    5. Restart Apache or other processes as necessary.

    Database updates are a more interesting question. Personally, I love Rails’s Migrations for this. If you were doing it by hand, you might include a couple shell scripts in your project to update the db and roll it back, respectively, but keeping those versioned correctly would be sort of tricky, since they would be specific to only one particular version. I’d recommend using an existing system like Migrations (which can be used separately from Rails – I’ve seen it as the only Ruby component of some Java-based projects), or asking that as a separate question.

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

Sidebar

Ask A Question

Stats

  • Questions 124k
  • Answers 124k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Are you running on OS 3.0? I saw the same… May 12, 2026 at 1:19 am
  • Editorial Team
    Editorial Team added an answer It looks like you need to register Apache::Session::Memcached with Apache::Session::Wrapper,… May 12, 2026 at 1:19 am
  • Editorial Team
    Editorial Team added an answer Use DATENAME or DATEPART: SELECT DATENAME(dw,GETDATE()) -- Friday SELECT DATEPART(dw,GETDATE())… May 12, 2026 at 1:19 am

Related Questions

We are planning on adding multi-language support for our ASP.NET Website. I understand the
I challenge you :) I have a process that someone already implemented. I will
In the Visual Studio designer, how do you move a menu item from one
I have a website written in PHP under source control (SVN). I would like

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.