Skip to main content

GIT Repository

Comments

6 comments

  • cPRex Jurassic Moderator
    Hey there! Can you check the following logs to see if those give any additional details on the situation?
    • /usr/local/cpanel/logs/error_log " Errors and stack traces.
    • /home/username/.cpanel/logs/user_task_runner.log " Queue-related items.
    • /home/username/.cpanel/logs/vc_TIMESTAMP_git_create.log " Creation-related issues, where TIMESTAMP represents the time of the operation.
    • /home/username/.cpanel/logs/vc_TIMESTAMP_git_deploy.log " Deployment-related issues, where TIMESTAMP represents the time of the operation.
    Those are taken from our documentation here:
    0
  • Edrick Smith
    Hey there! Can you check the following logs to see if those give any additional details on the situation?
    • /usr/local/cpanel/logs/error_log " Errors and stack traces.
    • /home/username/.cpanel/logs/user_task_runner.log " Queue-related items.
    • /home/username/.cpanel/logs/vc_TIMESTAMP_git_create.log " Creation-related issues, where TIMESTAMP represents the time of the operation.
    • /home/username/.cpanel/logs/vc_TIMESTAMP_git_deploy.log " Deployment-related issues, where TIMESTAMP represents the time of the operation.
    Those are taken from our documentation here:
    0
  • cPRex Jurassic Moderator
    Progress! The docs on this page have an example .yml file you may want to reference:
    0
  • Edrick Smith
    So I was able to get the GIT to pull successfully, one question how would I specify that instead of pulling the full GIT repository it just pulls the "public" folder from that GIT? So the issue we're having is that its pulling all the build files plus the public folder. Where as the contents of the public folder on GIT are the only things that need to be pulled into public_html
    ---
    deployment:
    tasks:
    - export DEPLOYPATH=/home/cpaneluser/public_html/
    - /bin/cp -R public $DEPLOYPATH
    So I'm a bit confused as to what I would modify to only pull say /NAMEOFREPOSITORY/public where as right now its pulling the full repository Ive got it to just pull the public folder, but I want that folders content deployed into public_html
    0
  • Edrick Smith
    Figured it out, needed to set it to - /bin/cp -R public/* $DEPLOYPATH So the last part I'm confused about, is how do I get cPanel to auto pull anytime there's a committed revision to GitHub?
    0
  • cPRex Jurassic Moderator
    I'm not aware of a way to do that where the cPanel side "senses" there has been a commit. You could set up a cron job to pull the changes down at regular intervals, but that's all I can think of for that situation.
    0

Please sign in to leave a comment.