Git manual/pull deployment: a little help to understand the approach AislinnMc August 06, 2020 18:17 Hi, I'm implementing manual git deployment (see ) and it's not working as expected. I'd love some help to understand how to this! What I've done is: 1) Create staging.mydomain.com which points to /home/my_username/_staging.mydomain.com. This folder is empty. 2) Connect an existing repo using Git" Version Control. This is saved under /home/my_username/git_repos/staging.mydomain.com and contains all the files pulled from github, including this .cpanel.yml file: [CODE=bash]--- deployment: tasks: - export DEPLOYPATH=/home/my_username/_staging.mydomain.com/ - export SRCPATH=/home/my_username/git_repos/staging.mydomain.com/ - /bin/rm -rf $DEPLOYPATH/* - /bin/rsync -av --exclude='.git/' --exlude='.gitignore*' --exlude='.cpanel.yml*' $SRCPATH $DEPLOYPATH 3) Go to Git" Version Control > Manage > Pull or Deploy > Update from remote (this works) then Deploy HEAD Commit (this doesn't seem to do anything). What I'm trying to accomplish, based on my understanding of this process, is to store my repo in one place, manually update it when I push new changes then deploy it using .cpanel.yml which should copy all the relevant* files from the repo into the subdomain's folder. This last step (copy-paste) is not working: my subdomain's folder remains sadly empty. What am I missing? * Since the documentation says "Don"t use a wildcard character, such as an asterisk, to deploy all files. This could deploy items like the .git directory and cause serious problems."
Comments
0 comments