From 04a5818d21c20652949122cbef395df3d53b0d8e Mon Sep 17 00:00:00 2001 From: Ben Katz Date: Mon, 26 Aug 2024 20:53:32 +0700 Subject: [PATCH] Update scheduled-cron-tasks.md --- docs/processes/scheduled-cron-tasks.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/processes/scheduled-cron-tasks.md b/docs/processes/scheduled-cron-tasks.md index fcf07b2b6..5f5f7d8b9 100644 --- a/docs/processes/scheduled-cron-tasks.md +++ b/docs/processes/scheduled-cron-tasks.md @@ -16,6 +16,9 @@ cron:set [--global|] # Set or clear a cron property for an ap Dokku automates scheduled `dokku run` commands via it's `app.json` cron integration. +> [!IMPORTANT] +> In order for Dokku to run scheduled cron tasks, you must have the `crontab` utility installed on the machine Dokku runs on. On Debian-based systems, you can install it with `sudo apt install cron`. + #### Specifying commands The `app.json` file for a given app can define a special `cron` key that contains a list of commands to run on given schedules. The following is a simple example `app.json` that effectively runs the command `dokku run $APP npm run send-email` once a day: