docs: clarify the shape of the command that should be entered in app.json for a cron task
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user