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
2021-08-05 20:28:30 -04:00
committed by GitHub

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