Open navClose nav

Bitbucket

Temporarily Unavailable

Due to some issues with the Bitbucket API, we are not currently able to offer Quick Setup for Bitbucket projects. Please refer to our manual setup documentation for instructions on setting up your Bitbucket project.

Disclaimer

This guide assumes you already have an existing Bitbucket account and repository with a Jekyll or Hugo project. If you don’t have an existing project, check out our Quick start guide, which contains guides and resources for building your first static site.

Forestry’s allows you to import your static site through Bitbucket repositories. This allows Forestry to sync any changes made by editors in Forestry to be comitted back to Bitbucket. This also allows developers to work on your website on their local machine, and have all changes by synced back to Forestry.

Importing from BitBucket

To import a site with Bitbucket, login to Forestry and follow these instructions:

https://res.cloudinary.com/forestry-demo/image/fetch/c_limit,dpr_auto,f_auto,q_80,w_640/https://forestry.io/uploads/2018/04/add-site-flow-choose-generator-2.png

From the dashboard, click “Add Site”. In the modal that opens, choose Choose the static site generator your site is built with from the dropdown menu, and then press “Next”.

https://res.cloudinary.com/forestry-demo/image/fetch/c_limit,dpr_auto,f_auto,q_80,w_640/https://forestry.io/uploads/2018/04/add-site-flow-select-provider.png

Now, choose “Bitbucket” from the list of options.

https://res.cloudinary.com/forestry-demo/image/fetch/c_limit,dpr_auto,f_auto,q_80,w_640/https://forestry.io/uploads/2018/01/7.png

This will redirect you to Bitbucket and prompt you to enter your login credentials if you are not already logged in.

In order to import a site from Bitbucket, you will need admin permissions for the repository. This is because Forestry needs to add a webhook to your repository in order to watch for changes.

https://res.cloudinary.com/forestry-demo/image/fetch/c_limit,dpr_auto,f_auto,q_80,w_640/https://forestry.io/uploads/2018/04/add-site-flow-choose-repo-not-github.png

Once authorized, you will be redirected back to Forestry to choose the repository you wish to import. From the dropdowns, choose your repository and the branch you would like to import, and then press “Next”.

https://res.cloudinary.com/forestry-demo/image/fetch/c_limit,dpr_auto,f_auto,q_80,w_640/https://forestry.io/uploads/2018/04/add-site-flow-config-file.png

If Forestry can’t locate your site’s config file inside of the root of your project, you’ll be prompted to provide the directory it is located in.

https://res.cloudinary.com/forestry-demo/image/fetch/c_limit,dpr_auto,f_auto,q_80,w_640/https://forestry.io/uploads/2018/04/add-site-flow-invite-guests.png

In the final step, you can invite up to 3 Guest users to edit content on your project with you. Learn more about user roles. When you’re done just click on “Import Site” and let us get your site ready.


Last updated on August 27, 2018