Can't deploy git repo with .cpanel.yml
Hey guys,
I have a valid .cpanel.yml file in the top-level directory located at /home/user/public_html, which contains:
---
deployment:
tasks:
- export DEPLOYPATH=/home/user/public_html/
- /bin/cp -R wp-content $DEPLOYPATH
cPanel still shows " The system cannot deploy " and doesn't allow me to do a head commit in Repository panel.
Not sure what's wrong here? I followed the guides.
-
Just to confirm you are using the correct cPanel username in the DEPLOYPATH 0 -
Just to confirm you are using the correct cPanel username in the DEPLOYPATH
Yes, I just left it out for security reasons, but thank-you for confirming. We've actually decided against this deployment method because this whole process has been a massive pain in the ass. We were also running into merge conflicts after pushing to our repo then doing a manual update (That should never ever happen because there aren't merge conflicts in the repo). To be honest cPanel really needs to step up their game here. Plesk is lightyears ahead of you guys in this department. With Plesk when you add a repo it automatically generates an SSH key, and displays it for you, AND it provides a proper webhook URL so you can add that in the repo settings. It just works. I hope they fix this soon.0 -
I've passed this along to our development team that manages Git - thanks for the feedback, and I'm glad you found an alternative that works for you. 0
Please sign in to leave a comment.
Comments
3 comments