Skip to content

Commit 6a19bc6

Browse files
committed
Add more debug logs to entrypoint
1 parent 9404d2e commit 6a19bc6

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

backend/entrypoint.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
# Redirect all output to stderr so Railway shows it
44
exec 1>&2
55

6-
echo "=== ENTRYPOINT v3 ==="
6+
echo "=== ENTRYPOINT v4 ==="
77
echo "PORT=${PORT}"
8-
echo "DATABASE_URL length: ${#DATABASE_URL}"
8+
echo "DATABASE_URL=${DATABASE_URL}"
99

1010
echo "Running migrations..."
1111
alembic upgrade head
12+
echo "Migrations done with exit code: $?"
1213

13-
echo "Starting uvicorn..."
14-
exec uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-8000}
14+
echo "Starting uvicorn on port ${PORT:-8000}..."
15+
exec uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-8000} --log-level debug

0 commit comments

Comments
 (0)