aboutsummaryrefslogtreecommitdiff
path: root/communities/red-right-hand/174bg.net/README.md
diff options
context:
space:
mode:
authorAlex Pooley (@zuedev) <zuedev@gmail.com>2026-05-13 16:47:55 +0100
committerAlex Pooley (@zuedev) <zuedev@gmail.com>2026-05-13 16:47:55 +0100
commitab91895424b2c1a74299d6a1335c31e3efb4785d (patch)
treef234726386bf792620f1cab2832319fa494c818f /communities/red-right-hand/174bg.net/README.md
parent0887761a58beadffae4d2f8811e37da3412a9fd4 (diff)
downloadunnamed-group-ab91895424b2c1a74299d6a1335c31e3efb4785d.tar
unnamed-group-ab91895424b2c1a74299d6a1335c31e3efb4785d.tar.gz
unnamed-group-ab91895424b2c1a74299d6a1335c31e3efb4785d.tar.bz2
unnamed-group-ab91895424b2c1a74299d6a1335c31e3efb4785d.tar.xz
unnamed-group-ab91895424b2c1a74299d6a1335c31e3efb4785d.zip
add migrations in the build
Diffstat (limited to 'communities/red-right-hand/174bg.net/README.md')
-rw-r--r--communities/red-right-hand/174bg.net/README.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/communities/red-right-hand/174bg.net/README.md b/communities/red-right-hand/174bg.net/README.md
index 71f534e..b1d2ba4 100644
--- a/communities/red-right-hand/174bg.net/README.md
+++ b/communities/red-right-hand/174bg.net/README.md
@@ -8,8 +8,10 @@ The website is built using [Next.js](https://nextjs.org/) and is deployed via [D
### First Run
-After starting the containers, run the following command to apply database migrations:
+After starting the containers, apply the database migrations by piping each SQL file in `better-auth_migrations/` into the postgres container:
```sh
-docker compose exec 174bg-net npx auth@latest migrate --config src/auth.js --yes
+cat better-auth_migrations/*.sql | docker compose exec -T postgres psql -U postgres -d postgres
```
+
+> If your `.env` uses a different `POSTGRES_USER` or `POSTGRES_DB`, substitute those values for `postgres` above.