v0idless
v0idless

Reputation: 948

Keep remote server synced with a Git repo

I'm using bitbucket to host my git repos. I develop locally and push to bitbucket. I have a public testing server which I would like to keep synced with the repo. Is there a way I can use some kind of hook to tell the remove server to pull each time there is a new push? I'd rather not run a cron to pull every 5 minutes.

Upvotes: 2

Views: 2188

Answers (1)

larsks
larsks

Reputation: 312028

This documentation discusses how to generate automatic notifications to other services when you update your bitbucket hosted repository.

It appears to include a generic POST service which you could use to ping your own webserver to trigger an update.

Upvotes: 3

Related Questions