💚 Add db migration and fix build errors

This commit is contained in:
Manuel
2023-08-05 11:33:29 +02:00
parent da57166fe7
commit 44119422f6
3 changed files with 9 additions and 1 deletions

View File

@@ -14,6 +14,8 @@ COPY package.json ./package.json
COPY .next/standalone ./
COPY .next/static ./.next/static
COPY prisma/schema.prisma prisma/schema.prisma
COPY ./scripts/run.sh ./scripts/run.sh
EXPOSE 7575

View File

@@ -78,6 +78,7 @@
"next-auth": "^4.22.3",
"next-i18next": "^13.0.0",
"nzbget-api": "^0.0.3",
"prisma": "^5.0.0",
"prismjs": "^1.29.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
@@ -119,7 +120,6 @@
"happy-dom": "^10.0.0",
"node-mocks-http": "^1.12.2",
"prettier": "^3.0.0",
"prisma": "^5.0.0",
"sass": "^1.56.1",
"ts-node": "latest",
"turbo": "latest",

View File

@@ -1,4 +1,10 @@
#!/bin/sh
echo "Exporting hostname..."
export NEXTAUTH_URL_INTERNAL="http://$HOSTNAME:7575"
echo "Pushing database changes..."
npx prisma db push --skip-generate
echo "Starting production server..."
node /app/server.js