Automatic deployment issue with github & cpanel

bogdan450

Registered
Jan 23, 2021
4
0
1
Athens
cPanel Access Level
Website Owner
I setup automatic deployment -- when I push from my local to github repo then I run webhook https://prnt.sc/wgmqhr that has one command:

shell_exec( "cd /home/path../ && git reset HEAD && git pull origin" );

In cpanel also I have created git repo https://prnt.sc/wgmvsw that I cloned from github and in my local I clone from github

until this point it works fine, but when I do some changes in my site (e.g install new module) then git push does not work anymore. I have to pull changes to my local files or github repo, and I don't know how.
 

bogdan450

Registered
Jan 23, 2021
4
0
1
Athens
cPanel Access Level
Website Owner
Can you check the deployment errors in /home
Hey there! I don't see how a module install or site change would affect the details that git uses to function. Can you check the deployment errors in /home/username/.cpanel/logs to see if that gives you more detail?
Pull changes from github works properly, and with automation. The problem is when I try to push changes from cPanel to github repo to update it and then to pull from github to local to continue to work with local . When I try to push from cpanel to github I have this error Screenshot
In /home/username/.cpanel/logs there is no one log about this issue.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,282
2,434
363
cPanel Access Level
Root Administrator
Thanks for the additional details. Do you have root access to the server? If so, you could submit a ticket to our team so we could check the issue. If not, you'd need to speak with your hosting provider or datacenter to see if they are able to determine the root cause of the error from the git system.