initial commit

This commit is contained in:
Jose Selesan
2026-05-28 14:33:16 -03:00
commit 7bc3d9f898
211 changed files with 161253 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#!/bin/sh
set -e
echo "Running database migrations..."
max_retries=30
i=0
until [ $i -ge $max_retries ]; do
if bun run --cwd apps/backend prisma:migrate:deploy 2>&1; then
echo "Migrations complete"
break
fi
i=$((i + 1))
echo "Migration attempt $i failed, retrying in 2s..."
sleep 2
done
if [ $i -ge $max_retries ]; then
echo "Failed to run migrations after $max_retries attempts"
exit 1
fi
exec "$@"