How can I setup Git pull to Ubuntu server from Push to Bitbucket

August 1, 2017 1.1k views
Deployment PHP Git Ubuntu

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 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?

1 Answer

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 and the bitbucket hook example at

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

All the best,

Have another answer? Share your knowledge.