I’m looking for a solution like “Git hooks” but my setup is that I’m using Bitbucket as central repository and I’m trying to use webhooks with by posting to a route in Php laravel where I have tried various pull scripts like this https://github.com/antriver/auto-git-pull from github without any luck.
I’m using digital ocean droplet ubuntu server with nginx Php Laravel and have configured SSH access from server to bitbucket.
Does anyone here know a solution for my problem?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!
Hello there, I am author of two possible solutions to your problem.
First one is the open-source incoming webhook server that can execute commands, you can find it at https://github.com/adnanh/webhook and the bitbucket hook example at https://github.com/adnanh/webhook/wiki/Hook-Examples
Second one is Hookdoo and it follows a little bit different approach. However, it is a paid Software-as-a-Service solution, but it requires you to do zero setup on the server. When you register for the first time, you will receive a month of free trial so you can try it out, and we can help you set it up. You can check it out at https://www.hookdoo.com/
All the best, Adnan