Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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
add comment

3 Answers 3

"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
add comment

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
add comment

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
add comment

Your Answer

 
discard

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.