Hello,
I have a cPanel installation with git installed on the server and I am able to clone/checkout/pull ok but I manually have to copy/rsync files to public_html which feels very cumbersome. On past servers I believe that we set up our git project directory like project_name->docroot. We then checked out our project above public_html and then we had a symlink in public_html that pointed to our docroot folder in the .git repository. I would think that we just make public_html->symlink the docroot but our hosting company is very skittish about doing anything with public_html. Am I just thinking about this the wrong way? The hosting company has not been able to provide any insight on best practices for this.
-Thanks
I have a cPanel installation with git installed on the server and I am able to clone/checkout/pull ok but I manually have to copy/rsync files to public_html which feels very cumbersome. On past servers I believe that we set up our git project directory like project_name->docroot. We then checked out our project above public_html and then we had a symlink in public_html that pointed to our docroot folder in the .git repository. I would think that we just make public_html->symlink the docroot but our hosting company is very skittish about doing anything with public_html. Am I just thinking about this the wrong way? The hosting company has not been able to provide any insight on best practices for this.
-Thanks