From 77340011bdecbfa124c59ef1c6ce55c5bf3dce16 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 5 Aug 2021 20:27:58 -0400 Subject: [PATCH] docs: clarify the shape of the command that should be entered in app.json for a cron task --- docs/processes/scheduled-cron-tasks.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/processes/scheduled-cron-tasks.md b/docs/processes/scheduled-cron-tasks.md index f0466f9d7..5d3a7d3cd 100644 --- a/docs/processes/scheduled-cron-tasks.md +++ b/docs/processes/scheduled-cron-tasks.md @@ -15,13 +15,13 @@ Dokku automates scheduled `dokku run` commands via it's `app.json` cron integrat #### 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 simply runs the command `true` once a day: +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 simply runs the command `npm run send-email` once a day: ``` { "cron": [ { - "command": "true", + "command": "npm run send-email", "schedule": "@daily" } ]