eveo
eveo

Reputation: 2843

Git commits to show live on website

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

Answers (1)

Issam Zoli
Issam Zoli

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

Related Questions