I have a BitBucket repository in the cloud and SourceTree on my local machine. What I want is that whenever changes from my SourceTree are pushed to BitBucket repository, it should be available instantly on the production server
Two easy ways to do this:
1. Set up a webhook listener on the production server that will pull new code; set up a webhook on Bitbucket that will notify the listener. (Documentation: https://confluence.atlassian.com/bitbucket/manage-webhooks-735643732.html )
2. Deploy with Bitbucket Pipelines. As a bonus, this will also let you do whatever tests you want. (Documentation: https://bitbucket.org/product/features/pipelines )
There's a third way involving cron, but I don't recommend it. (Lots of overhead and lots of extra bandwidth usage for very little benefit.)
Thank you for your reply. Is there any working example I can check
It looks like you're new here. Sign in or register to get started.