: 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
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?
More posts by @Lengel546
3 Comments
Sorted by latest first Latest Oldest Best
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.
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.
"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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.