Merge pull request #4712 from dokku/4695-cron-docs

Clarify the shape of the command that should be entered in app.json for a cron task
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2021-08-05 20:28:30 -04:00
commit a9905d3508
1 file changed
+2 -2
+2 -2
View File
@@ -15,13 +15,13 @@ Dokku automates scheduled `dokku run` commands via it's `app.json` cron integrat
#### Specifying commands #### 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": [ "cron": [
{ {
"command": "true", "command": "npm run send-email",
"schedule": "@daily" "schedule": "@daily"
} }
] ]