fix deployment

This commit is contained in:
Dobromir Popov
2024-12-25 22:03:41 +02:00
parent 4f5a4ed63b
commit 25b53222d4

View File

@ -16,18 +16,18 @@ services:
- GIT_USERNAME=deploy
- GIT_PASSWORD=L3Kr2R438u4F7
- ADMIN_PASSWORD=kolichkisofia2024
command: >
sh -c "
cd /app &&
rm -rf node_modules package-lock.json &&
npm install --no-package-lock &&
npm uninstall @prisma/client prisma &&
npm install @prisma/client@5.22.0 prisma@5.22.0 --save-exact &&
npx next build &&
npx prisma migrate deploy &&
npx prisma generate &&
npm run start-env;
tail -f /dev/null"
command: >
sh -c "
cd /app &&
rm -rf node_modules package-lock.json &&
npm install --no-package-lock &&
npm uninstall @prisma/client prisma &&
npm install @prisma/client@5.22.0 prisma@5.22.0 --save-exact &&
npx next build &&
npx prisma migrate deploy &&
npx prisma generate &&
npm run start-env;
tail -f /dev/null"
tty: true
stdin_open: true
restart: always