Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Document root when using Git

Discussion in 'General Discussion' started by akust0m, Jul 1, 2018.

  1. akust0m

    akust0m Well-Known Member

    Joined:
    Feb 19, 2016
    Messages:
    63
    Likes Received:
    4
    Trophy Points:
    8
    Location:
    Melbourne
    cPanel Access Level:
    Root Administrator
    Hey,

    I'm quite new to Git, but I've been playing with it since cPanel 72.

    I've created a Git repository in cPanel with the Git repository set to a folder outside of 'public_html'.

    What is the suggested way to deploy this application? I've been thinking through the following scenarios:

    • Set the Git repository path at 'public_html'
    • Configure an addon domains document root to the Git repository folder
    • Set up a symlink from 'public_html' to the Git repository folder
    What is the suggested/recommended way to handle this?

    Is it possible to automatically move a copy of the files in the Git repo to the websites document root, or is it better to just set the Git repo and website document root as the same folder?

    Thanks!
     
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,721
    Likes Received:
    186
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice