💚 Add db migration and fix build errors
This commit is contained in:
@@ -14,6 +14,8 @@ COPY package.json ./package.json
|
|||||||
COPY .next/standalone ./
|
COPY .next/standalone ./
|
||||||
COPY .next/static ./.next/static
|
COPY .next/static ./.next/static
|
||||||
|
|
||||||
|
COPY prisma/schema.prisma prisma/schema.prisma
|
||||||
|
|
||||||
COPY ./scripts/run.sh ./scripts/run.sh
|
COPY ./scripts/run.sh ./scripts/run.sh
|
||||||
|
|
||||||
EXPOSE 7575
|
EXPOSE 7575
|
||||||
|
|||||||
@@ -78,6 +78,7 @@
|
|||||||
"next-auth": "^4.22.3",
|
"next-auth": "^4.22.3",
|
||||||
"next-i18next": "^13.0.0",
|
"next-i18next": "^13.0.0",
|
||||||
"nzbget-api": "^0.0.3",
|
"nzbget-api": "^0.0.3",
|
||||||
|
"prisma": "^5.0.0",
|
||||||
"prismjs": "^1.29.0",
|
"prismjs": "^1.29.0",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
@@ -119,7 +120,6 @@
|
|||||||
"happy-dom": "^10.0.0",
|
"happy-dom": "^10.0.0",
|
||||||
"node-mocks-http": "^1.12.2",
|
"node-mocks-http": "^1.12.2",
|
||||||
"prettier": "^3.0.0",
|
"prettier": "^3.0.0",
|
||||||
"prisma": "^5.0.0",
|
|
||||||
"sass": "^1.56.1",
|
"sass": "^1.56.1",
|
||||||
"ts-node": "latest",
|
"ts-node": "latest",
|
||||||
"turbo": "latest",
|
"turbo": "latest",
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "Exporting hostname..."
|
||||||
export NEXTAUTH_URL_INTERNAL="http://$HOSTNAME:7575"
|
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
|
node /app/server.js
|
||||||
Reference in New Issue
Block a user