Reputation: 2843
So I have a bitbucket repository I push my code to. How can I hook up my repository and have it so that anything that gets committed shows on my site?
Upvotes: 0
Views: 360
Reputation: 2774
In this link https://confluence.atlassian.com/display/BITBUCKET/Manage+Bitbucket+hooks you can find a documentation on how to add a hook. Add a POST hook to call a url on your server. This url should point to a script (PHP for example) to git pull, check this blog post http://jondavidjohn.com/git-pull-from-a-php-script-not-so-simple.
Upvotes: 1