From 04a5818d21c20652949122cbef395df3d53b0d8e Mon Sep 17 00:00:00 2001 From: Ben Katz Date: Mon, 26 Aug 2024 20:53:32 +0700 Subject: [PATCH 1/3] 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: From 45285761aac0be19eac38bdb5d893c45b31f257a Mon Sep 17 00:00:00 2001 From: Ben Katz Date: Tue, 27 Aug 2024 17:29:23 +0700 Subject: [PATCH 2/3] Add cron to debian control --- debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 06046fae7..250fa35ff 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Version: 0.34.9 Section: web Priority: optional Architecture: amd64 -Depends: apache2-utils, locales, git, cpio, curl, man-db, netcat, sshcommand, docker-engine-cs (>= 17.05.0) | docker-engine (>= 17.05.0) | docker-io (>= 17.05.0) | docker.io (>= 17.05.0) | docker-ce (>= 17.05.0) | docker-ee (>= 17.05.0) | moby-engine, docker-compose-plugin | moby-compose, docker-buildx-plugin | moby-buildx, docker-container-healthchecker, docker-image-labeler, lambda-builder, net-tools, netrc, parallel, procfile-util, rsync, rsyslog, dos2unix, jq, unzip, util-linux +Depends: apache2-utils, locales, git, cpio, cron, curl, man-db, netcat, sshcommand, docker-engine-cs (>= 17.05.0) | docker-engine (>= 17.05.0) | docker-io (>= 17.05.0) | docker.io (>= 17.05.0) | docker-ce (>= 17.05.0) | docker-ee (>= 17.05.0) | moby-engine, docker-compose-plugin | moby-compose, docker-buildx-plugin | moby-buildx, docker-container-healthchecker, docker-image-labeler, lambda-builder, net-tools, netrc, parallel, procfile-util, rsync, rsyslog, dos2unix, jq, unzip, util-linux Recommends: herokuish, bash-completion, dokku-update, dokku-event-listener Pre-Depends: gliderlabs-sigil, nginx (>= 1.8.0) | openresty, bind9-dnsutils, cgroupfs-mount | cgroup-lite, plugn, sudo, python3, debconf Maintainer: Jose Diaz-Gonzalez From cb206eb2b77ec874ef6799a1a3e9f3bbb30feed0 Mon Sep 17 00:00:00 2001 From: Ben Katz Date: Tue, 27 Aug 2024 17:32:38 +0700 Subject: [PATCH 3/3] Update scheduled-cron-tasks.md --- docs/processes/scheduled-cron-tasks.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/docs/processes/scheduled-cron-tasks.md b/docs/processes/scheduled-cron-tasks.md index 5f5f7d8b9..fcf07b2b6 100644 --- a/docs/processes/scheduled-cron-tasks.md +++ b/docs/processes/scheduled-cron-tasks.md @@ -16,9 +16,6 @@ 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: