Erix
By:
Erix

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

August 1, 2017 385 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 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?

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

Have another answer? Share your knowledge.