diff options
| author | Alex Pooley (@zuedev) <zuedev@gmail.com> | 2026-05-13 16:50:35 +0100 |
|---|---|---|
| committer | Alex Pooley (@zuedev) <zuedev@gmail.com> | 2026-05-13 16:50:35 +0100 |
| commit | 633b88e2ade9aa059b0fe95bf6b441a8efebdf44 (patch) | |
| tree | 555d8456812084abe6a31b37ad6f20044233712f /communities/red-right-hand/174bg.net | |
| parent | ab91895424b2c1a74299d6a1335c31e3efb4785d (diff) | |
| download | unnamed-group-633b88e2ade9aa059b0fe95bf6b441a8efebdf44.tar unnamed-group-633b88e2ade9aa059b0fe95bf6b441a8efebdf44.tar.gz unnamed-group-633b88e2ade9aa059b0fe95bf6b441a8efebdf44.tar.bz2 unnamed-group-633b88e2ade9aa059b0fe95bf6b441a8efebdf44.tar.xz unnamed-group-633b88e2ade9aa059b0fe95bf6b441a8efebdf44.zip | |
postgres migrations
Diffstat (limited to 'communities/red-right-hand/174bg.net')
| -rw-r--r-- | communities/red-right-hand/174bg.net/Dockerfile | 3 | ||||
| -rw-r--r-- | communities/red-right-hand/174bg.net/README.md | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/communities/red-right-hand/174bg.net/Dockerfile b/communities/red-right-hand/174bg.net/Dockerfile index bf4fce4..636d9b2 100644 --- a/communities/red-right-hand/174bg.net/Dockerfile +++ b/communities/red-right-hand/174bg.net/Dockerfile @@ -89,6 +89,9 @@ ENV HOSTNAME="0.0.0.0" # Copy production assets COPY --from=builder --chown=node:node /app/public ./public +# Copy database migration files +COPY --from=builder --chown=node:node /app/better-auth_migrations ./better-auth_migrations + # Set the correct permission for prerender cache RUN mkdir .next RUN chown node:node .next diff --git a/communities/red-right-hand/174bg.net/README.md b/communities/red-right-hand/174bg.net/README.md index b1d2ba4..6fee992 100644 --- a/communities/red-right-hand/174bg.net/README.md +++ b/communities/red-right-hand/174bg.net/README.md @@ -11,7 +11,7 @@ The website is built using [Next.js](https://nextjs.org/) and is deployed via [D After starting the containers, apply the database migrations by piping each SQL file in `better-auth_migrations/` into the postgres container: ```sh -cat better-auth_migrations/*.sql | docker compose exec -T postgres psql -U postgres -d postgres +docker compose exec -T 174bg-net sh -c '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. |
