Define a schedule to automatically build a site.
There are two types of scheduled builds:
Manually configured builds or Manual builds are configured in the CloudCannon UI. They are useful for regular period builds or one off future builds.
To configure a manual build:
Repeat Intervals work from the original date selected. If you select a daily interval and your original time was 2pm, all future builds will run at 2pm.
To remove a build:
Automatic builds are configured by creating a
_schedule.txt file in your site. After building your site, CloudCannon will read your
_schedule.txt file and automatically configure a build at the specified time. This is useful for future posts.
_schedule.txt is a comma separated list of values. It contains three values:
These values are used to schedule a build and generate the management UI.
If you’re creating
_schedule.txt without the
jekyll-cloudcannon-schedule plugin you will need to add the file to your
_config.yml as Jekyll doesn’t process files beginning with an underscore by default.
For Jekyll sites we recommend using our plugin, jekyll-cloudcannon-schedule to generate
_schedule.txt. This will parse all posts set for the future and generate a build on that date.
Add the following to your Gemfile:
Add the following to your _config.yml:
If you are using a Jekyll version less than 3.5.0, use the
gems key instead of
_schedule.txt is correctly set up, your site will be built automatically at the specified times.
To view all available automatic builds:
Posts that are visible on the main site will not trigger a build. If automatic builds are not working, ensure
–-future is unchecked in Site Settings / Configuration.