Git Push Deployment does not work for all files
I have a GIT repository set up on my server and can clone, pull etc. to my local machine. I was able to Push-deploy changes to the server with the below .cpanel.yml file off the master branch but if I change the file to be deployed or the branch to deploy from then nothing gets deployed.
Working .cpanel.yml
But when I change branch and target a different file nothing gets deployed
Below are the logs. vc_1622629447.11365_git_deploy.log
user_task_runner_log
---
deployment:
tasks:
- export DEPLOYPATH=/home/user/public_html/_DEV/
- /bin/cp index.php $DEPLOYPATH
But when I change branch and target a different file nothing gets deployed
---
deployment:
tasks:
- export DEPLOYPATH=/home/user/public_html/_DEV/
- /bin/cp log_dB.php $DEPLOYPATH
Below are the logs. vc_1622629447.11365_git_deploy.log
1622629447.262202210
$ /bin/cp index.php $DEPLOYPATH
Task completed with exit code 0.
1622629447.26442
Build completed with exit code 0
user_task_runner_log
2021-06-02T09:52:43Z: Processing 00000000/60b754eb08f890...
2021-06-02T09:52:43Z: doing Cpanel::UserTasks::VersionControl::deploy
2021-06-02T09:52:43Z: Queue empty, terminating
2021-06-02T09:53:32Z: Processing 00000000/60b7551ca0e57d...
2021-06-02T09:53:32Z: doing Cpanel::UserTasks::VersionControl::deploy
2021-06-02T09:53:32Z: Queue empty, terminating
2021-06-02T10:24:07Z: Processing 00000000/60b75c471be4ca...
2021-06-02T10:24:07Z: doing Cpanel::UserTasks::VersionControl::deploy
2021-06-02T10:24:07Z: Queue empty, terminating-
Hey there! I had one of our developers that is familiar with Git look through this with me, and neither of us are seeing anything out of the ordinary. The only possibility we came up with was that the change that touches log_dB.php was not checked out. 0 -
Hey there! I had one of our developers that is familiar with Git look through this with me, and neither of us are seeing anything out of the ordinary. The only possibility we came up with was that the change that touches log_dB.php was not checked out.
Hi, thanks for the response. I have the branch checked out on my local machine (using PHPStorm) and in cPanel on the Git version control page the branch is displayed as the " Currently Checked-Out Branch". Is that what you mean?0 -
That's what I was looking for, yes. Could there possibly be any issues with the cpanel.yaml file? 0 -
I found the issue, it looks like I had 2 .cpanel.yml files in my repository on the server. I did not notice until I pulled from the server to local and saw the two files in my directory, I didn't notice this earlier on the server because the .cpanel.yml file is hidden when in File Manager. Thank you for the help. 0 -
Great - I'm glad you were able to track that down! 0
Please sign in to leave a comment.
Comments
5 comments