diff --git a/backend/baseddata.service b/backend/baseddata.service index ebc33eb..98391c3 100644 --- a/backend/baseddata.service +++ b/backend/baseddata.service @@ -1,5 +1,5 @@ [Unit] -Description=Gunicorn instance to serve baseddata.io +Description=Uvicorn instance to serve baseddata.io After=network.target [Service] @@ -7,7 +7,7 @@ User=admin Group=www-data WorkingDirectory=/var/www/baseddata.io/backend Environment="PATH=/var/www/baseddata.io/.venv/bin" -ExecStart=/var/www/baseddata.io/.venv/bin/gunicorn --workers 4 --bind unix:baseddata.sock -m 007 main:app +ExecStart=/var/www/baseddata.io/.venv/bin/uvicorn --workers 4 --uds unix:baseddata.sock main:app [Install] WantedBy=multi-user.target diff --git a/pyproject.toml b/pyproject.toml index 4937eb3..2b45d23 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ in-project = true python = "^3.11" fastapi = "^0.115.4" uvicorn = "^0.32.0" -psycopg2 = "^2.9.10" +psycopg2-binary = "^2.9.10" [build-system]