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
2021-08-05 20:27:58 -04:00
parent 324e1ad1b5
commit 77340011bd

View File

@@ -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"
}
]