I’m having problems with setting up my webhook. I want my system to update the website when somebody pushes his/her files to git.
Our idea is that the webhook sends a request to the trigger file (php file). de trigger file ask for a pull request & it will be updated. We are trying to do it with ssh. Like:
cd ‘/route/to/your/git’ && git pull git@hosturl master 2<&1
But i am getting errors the whole time. (Host key verification failed. fatal: The remote end hung up unexpectedly)
Can you try doing a “whoami” to find which user the script is being executed?
Permission denied seems to suggest there’s a problem with doing a “sudo”.