Connecting a site to a Bitbucket Git repository

Sites can be connected to a Git repository and automatically kept in sync.

In order to do this look up your site in ServerWand, go to the Apps tab and click Git Repository.

You'll then be prompted to enter the git HTTPS URL for your repository e.g. https://git@bitbucket.org/username/myproject.git

The repository will then be cloned and you will be given an SSH key and Webhook URL.

These can be used for automatic deployments whenever you push to the master branch.

If you are using BitBucket you can add your ssh key in:

Settings -> SSH Keys -> Add key

And you can set the webhook URL in the repository Settings Webhooks -> Add Webhook:

Then you're done!

Any changes you make to the master branch of the repository will be reflected on the website within a minute or so of pushing them.