Report this

What is the reason for this report?

How to schedule a deployment of a static site within App Platform

Posted on September 24, 2023

Hi,

I’m using the App Platform to host a static site built with a headless CMS (Flotiq).

The site owner wants to be able to trigger a deployment from a webhook (via a button on Flotiq), but only have the site update at midnight the following day, for example. This is so news posts can be scheduled, rather than published immediately.

Is this possible? The guide here was perfect for immediate deployment, but I can’t anything that would help make it a delayed deployment.

Many thanks for any help! Chris



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey there,

is your code within a gitlab or github repo? Just create a certain branch, assign it to your DO platform app and run a scheduled pipeline. Once the pipeline is triggered it will also trigger a deployement.

I guess it should work that way without any issues.

Best regards, Oliver

Heya,

You can check this article on how to run a scheduled function:

https://docs.digitalocean.com/products/functions/how-to/schedule-functions/

To run functions on a schedule, you can create a function trigger and then specify a schedule using standard cron syntax. Each trigger is attached to a single function, but functions can have multiple triggers with different schedules and payloads.

Regards

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.