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.)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.