Skip to content

Commit 308f25d

Browse files
committed
Add debug logs to entrypoint
1 parent 38e834a commit 308f25d

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

backend/entrypoint.sh

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
#!/bin/sh
22

3-
echo "=== ENTRYPOINT START ==="
4-
echo "PORT: ${PORT:-8000}"
5-
echo "DATABASE_URL set: $(if [ -n "$DATABASE_URL" ]; then echo 'yes'; else echo 'NO!'; fi)"
3+
echo "=== ENTRYPOINT v2 ==="
4+
echo "PORT=${PORT}"
65

7-
echo "Running database migrations..."
8-
alembic upgrade head || { echo "Migration failed!"; exit 1; }
6+
# Skip seed for now - just start the server
7+
echo "Running migrations..."
8+
alembic upgrade head
99

10-
echo "Seeding database..."
11-
python scripts/seed_data.py || echo "Seed skipped or failed (continuing...)"
12-
13-
echo "Starting server on port ${PORT:-8000}..."
14-
exec uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-8000}
10+
echo "Starting uvicorn..."
11+
uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-8000}

0 commit comments

Comments
 (0)