Release 2025-05-19

This commit is contained in:
pluja
2025-05-19 10:10:06 +00:00
commit 046c4559e5
267 changed files with 49432 additions and 0 deletions

21
web/docker-entrypoint.sh Normal file
View File

@@ -0,0 +1,21 @@
#!/bin/sh
set -e
# Apply migrations
echo "Applying database migrations..."
npx prisma migrate deploy
# Apply triggers
echo "Applying database triggers..."
for trigger_file in prisma/triggers/*.sql; do
if [ -f "$trigger_file" ]; then
echo "Applying trigger: $trigger_file"
npx prisma db execute --file "$trigger_file" --schema=./prisma/schema.prisma
else
echo "No trigger files found in prisma/triggers/ or $trigger_file is not a file."
fi
done
# Start the application
echo "Starting the application..."
exec "$@"