Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This would allow me to update the folder in one click when I test the code on my development system. Is it possible and is it a good idea?

share|improve this question

"Is it possible" Yes, you can put any directory under version control. If it is a good idea depends on what you are doing with it. I'm using the Netbeans feature "copy project data to another dir" instead.

share|improve this answer

If you do so, be sure you block access to the source control system's directories and files. Here's an example of how to block access to Subversion directories in Apache; it will be similar for other SCC systems/web servers.

share|improve this answer
I didn't precise it as he said it was for the development system, but it's obviously recommended. – Stéphane Péchard Sep 22 '11 at 15:51

Of course you can, but it would maybe be easier to use tools like Fabric to deploy your code. It would be the same tool to deploy it for development and production, just in declaring different targeted servers.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.