Skip to content

Commit 8cc856c

Browse files
committed
Add apppack.toml to release example
1 parent df6c113 commit 8cc856c

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

src/how-to/apps/releases.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,21 @@ A release task is a command that must run once before a new version of your app
88

99
## Defining a release task
1010

11-
To define a release task, add the command to your `Procfile` under the key, `release`. For example, to apply database schema migrations for a Django application, you might add the following line:
11+
To define a release task, add the command to your `Procfile` under the key, `release` or in `apppack.toml` under `deploy.release_command`. For example, to apply database schema migrations for a Django application, you might add the following:
1212

13-
```yaml
14-
release: python manage.py migrate --noinput
15-
```
13+
=== "Procfile"
14+
15+
```yaml
16+
release: python manage.py migrate --noinput
17+
```
18+
19+
=== "apppack.toml"
20+
21+
```toml
22+
[deploy]
23+
24+
release_command = "python manage.py migrate --noinput"
25+
```
1626

1727
Unlike other commands in your `Procfile`, the `release` command will not create a new always-running service. It is a special task that only runs once during the deployment process.
1828

0 commit comments

Comments
 (0)