Mobile app version of vmapp.org
Login or Join
Lengel546

: Can I put my public_html folder under source control? 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

@Lengel546

Posted in: #Html

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?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Lengel546

3 Comments

Sorted by latest first Latest Oldest Best

 

@RJPawlick198

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.

10% popularity Vote Up Vote Down


 

@Eichhorn148

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.

10% popularity Vote Up Vote Down


 

@Murray432

"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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme