Skip to content

Commit cd58fee

Browse files
Add Docker example for self-hosting db dump script (#58)
* Add Docker example for self-hosting db dump script Added Docker usage example for self-hosting the bot. * Improve formatting of Docker example in scripts.md Reformat Docker usage example for clarity. --------- Co-authored-by: Isaac <git@eartharoid.me>
1 parent 1b1b026 commit cd58fee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/self-hosting/scripts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ This is not an efficient backup method; it is intended for converting between da
1919
```bash linenums="0"
2020
pnpm db.dump
2121
```
22+
!!! example "Docker"
23+
When self-hosting the bot using Docker, you can use `docker exec` to attach to the container. `docker exec -it [CONTAINER NAME] sh` will create an interactive shell, from which you can `cd` into `/app` and run the `db.dump` command.
2224

2325
### `db.prune`
2426

0 commit comments

Comments
 (0)