AFAIK, BB doesn't allow you to set up your own post-receive hooks, though I admit I haven't really looked into it much.
Set up a cron job on your webserver that simply git checkout -f's every 5 mins, on a branch. Whenever you want to update your webserver, push to that branch.
You can get fancier if you'd like.
You can write a client side script that wraps the git git pushing operation, then does something like ssh user@yourwebserver ./script-that-handles-pulling-down-stuff-then-restarting-web-server.sh EDIT- READ MY EDIT BELOW
Hoping Marcus Bertrand doesn't come and rip me a new one for telling people to poll BB servers (ducks).
Marcus cleverly (with great prejudice) informed me that there is a post commit POST service and I shouldn't tell people to poll our servers.
So you could simply create a webservice on your web server that listens for a post to some url, then triggers a small script that does the checkout -f. If you wanna be really really nice to our servers, you could parse the resultant message that we send to your service and only do the checkout if it affects your branch.
Please be nice to our servers :)
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs