The Hosting settings allow you to use Forestry to handle deployment of your static site. Forestry can build your site and then deploy the static files to a hosting provider of your choice.
Forestry has a selection of built-in hosting options that make hosting your static site easy.
Commit to source repo only
Enabling “commit to source repo only” will enable Forestry to only commit changes made in the CMS back to the branch and repository your site was imported from.
Looking to deploy your site using a CI/CD tool like GitLab CI or BitBucket Pipelines? Use Commit to source repo only. This will trigger any CI/CD tool when a change is saved or published in Forestry.
Forestry can build your site and deploy the generated static files to a branch of a GitHub repository for use with GitHub Pages.
Forestry can build your site and deploy the generated static files to a repository on BitBucket configured to use BitBucket pages.
Forestry can build your site and deploy the generated static files to an S3 bucket of your choosing.
Forestry can build your site and deploy the generated static files to any FTP/SFTP enabled web-server of your choosing.
In addition to the built-in hosting provider options provided by Forestry, we provide tutorials for using third-party services with Forestry.
GitHub Pages Jekyll Integration
If you are using Jekyll as your static site generator, GitHub pages can handle building your static site without the support of Forestry or a CI tool.
GitLab Pages & GitLab CI
GitLab provides a free CI tool for triggering build and deployment scripts when commits are made to your repository, and has example projects for both Hugo and Jekyll.
- GitLab Pages
- GoHugo.io: Host on GitLab
- GitLab.com: Hugo Example Project
- GitLab.com: Jekyll Example Project
BitBucket provides a CI tool for triggering build and deployment scripts when commits are made to your repository.
- BitBucket Pipelines Documentation
- Bitquobit.com: Automating Hugo Deployments with BitBucket Pipelines
Forestry has outgoing webhooks that can be used to trigger custom build scripts.
Caught a mistake or want to contribute to the docs? Edit this page on Github!