fix prima

This commit is contained in:
Dobromir Popov
2024-12-14 04:26:39 +02:00
parent 138918c043
commit 3ef9738266
11 changed files with 70 additions and 492 deletions

View File

@ -16,7 +16,7 @@ services:
- GIT_USERNAME=deploy
- GIT_PASSWORD=L3Kr2R438u4F7
- ADMIN_PASSWORD=kolichkisofia2024
command: sh -c " cd /app && npm install && npx next build && npm run start-env; tail -f /dev/null"
command: sh -c " cd /app && npm install && 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

View File

@ -3,7 +3,7 @@
if [ "$UPDATE_CODE_FROM_GIT" = "true" ]; then
# Install necessary packages
apk add git nano rsync
echo "Updating code from git.d-popov.com...(as '$GIT_USERNAME')" > /app/logs/deploy.txt
echo "Updating code from git.d-popov.com...(as '$GIT_USERNAME'). Branch: ${GIT_BRANCH:main}" > /app/logs/deploy.txt
# Create a temporary directory for the new clone
rm -rf /tmp/clone