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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:08:22+00:00 2026-06-12T05:08:22+00:00

In a development/testing setup for a web application, when using a dvcs (bzr, git)

  • 0

In a development/testing setup for a web application, when using a dvcs (bzr, git) why would it be wrong to actually run the application from the repository directory?

All the teams I’ve encountered have a separate deployment script that exports the repository checkout to another dir or server but I really never understood why and was afraid to ask the “grown up” not to seem “stupid”… I mean, it’s a development server anyway, not the production, so…?

  • 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-06-12T05:08:23+00:00Added an answer on June 12, 2026 at 5:08 am

    To clarify, the issue isn’t really about how you deploy, that’s a whole other question. The deeper principle is that your test environment should be as close to production as possible for the reasons @DaveE mentioned: small deployment differences can make your tests useless.

    It really sounds like you think mirroring the production install is too much work for your testing while developing. There’s two solutions to that. Making your test environment differ from production is not one of them.

    First, make the production install easier. This could be turning a manual process (copy files here, run these scripts, change these permissions…) into an automated process. Or it could be actually cutting down what deployment does. Can’t say more without knowing the details.

    If you don’t have a test environment, your dev environment becomes your test environment and must follow the stricter rules of being your only line of defense before production. To avoid that, create a staging server to test on. A staging server is one which mirrors production in as many was as possible. Development copies are installed on the staging server first and tested before being pushed to production. This gives you a two stage test system. You do some testing in your less-than-exact development environment, and the full battery of tests is done in the staging environment. The full test suite doesn’t have to be run all the time, so the staging server doesn’t have to constantly be updated. YMMV. You can then cut corners on your dev environment to speed up development while still knowing that everything will get tested on a full installation before production.

    If you have the resources, a staging server is a perfect mirror of all the hardware and software in production. You probably don’t have that, so it can be a virtual machine or just a sub-directory. Both can live on your development machine if you don’t have buy in from the rest of the team.

    Automating the install process, plus a staging server, means you can start doing continuous integration testing. This is a fancy term for “automatically run the tests on a test server on every commit”. An example of a continuous integration system is Jenkins. Then it doesn’t matter how complicated your deployment is, your robots take care of it for you.

    So while it might seem like a lot of fussy work at first, it all comes together in the end to allow testing without you even pushing a button.

    Ultimately your new code must be tested in an environment as similar as production as possible before being pushed live. There’s many ways to accomplish that, but that is a rock solid rule.

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

Sidebar

Related Questions

I'm developing a web application and I run Jetty as the development and testing
I'm trying to setup application tests to run on my development device but following
I am trying to setup a cron job in my Grails web application using
I'm testing OpenID authentication using python-openid on webpy's development web server. Through Yahoo! and
I have a strange application in that for development and testing I need a
I'm used to web development using LAMP, PHP5, MySQL plus NetBeans with Xdebug. Now
We're about to deploy a Java web application built using JBoss Seam as the
We have the standard 3 environment setup of development, testing and production. Each environment
I am trying to set up a development/testing site for my app engine web
For development and testing purposes, I'd like to install two web heads and a

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.