File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -54,14 +54,14 @@ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
5454
5555# copy my little start script (for migrating the database)
5656COPY --from=builder --chown=nextjs:nodejs /app/docker-start.sh ./
57- COPY --from=builder --chown=nextjs:nodejs /app/drizzle.config.ts ./
57+ COPY --from=builder --chown=nextjs:nodejs /app/drizzle.config.prod. ts ./
5858
5959USER nextjs
6060
6161EXPOSE 3000
6262ENV PORT 3000
6363ENV HOSTNAME "0.0.0.0"
64- LABEL org.opencontainers.image.source="https://github.com/aelithron/visiorganize "
64+ LABEL org.opencontainers.image.source="https://github.com/aelithron/booklink "
6565
6666# server.js is created by next build from the standalone output
6767# https://nextjs.org/docs/pages/api-reference/next-config-js/output
Original file line number Diff line number Diff line change 11#! /bin/bash
22echo " Migrating the database..."
3- npx drizzle-kit push
3+ npx drizzle-kit push --config ./drizzle.config.prod.ts
44echo " Starting the app..."
55node server.js
Original file line number Diff line number Diff line change 1+ import { defineConfig } from 'drizzle-kit' ;
2+
3+ export default defineConfig ( {
4+ out : './drizzle' ,
5+ schema : './db/schema.ts' ,
6+ dialect : 'postgresql' ,
7+ dbCredentials : {
8+ url : process . env . DATABASE_URL ! ,
9+ } ,
10+ } ) ;
You can’t perform that action at this time.
0 commit comments