diff --git a/entrypoint.sh b/entrypoint.sh
index e4bb84f3582f9e7bae6017bb8b1dd73e0c1962c8..c9a9d4f6aca492add4a64f3936d0500d648ced17 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -2,9 +2,9 @@
 set -o errexit
 set -o nounset
 
-cd /app/gso
-PYTHONPATH=.. python main.py db upgrade heads
+cd /app
+
+PYTHONPATH=. python gso/main.py db upgrade heads
 
 # Start the FastAPI application
-cd /app
 python -m uvicorn "gso.main:app" --host "0.0.0.0" --port 8080