I have a site that I would like to start managing with Git on cPanel. I know how to get the site up to the server so no issues there. The issue is that the site is located in a folder "/project/public" and the site serves up files from the document root of "/public_html".
I know that I could change the document root, but everything I read says that is not preferred for the primary domain. Since we use AutoSSL, I noticed we have a new folder in "/public_html" directory called ".well-known" (along with cgi-bin). This seems to prevent me from using a symbolic link for "/public_html" to point it to the "/project/public" directory.
What is the best way to handle this? I know many people are now using Git instead of FTP. What is the preferred method? If I remove the folders in the "/public_html" directory and create a symlink, won't it just recreate it during the nightly CRON? How should I best be using Git and cPanel together to serve up a site correctly?
Any advice is appreciated.
I know that I could change the document root, but everything I read says that is not preferred for the primary domain. Since we use AutoSSL, I noticed we have a new folder in "/public_html" directory called ".well-known" (along with cgi-bin). This seems to prevent me from using a symbolic link for "/public_html" to point it to the "/project/public" directory.
What is the best way to handle this? I know many people are now using Git instead of FTP. What is the preferred method? If I remove the folders in the "/public_html" directory and create a symlink, won't it just recreate it during the nightly CRON? How should I best be using Git and cPanel together to serve up a site correctly?
Any advice is appreciated.