From e83fdd6502726904a887d6bedb63558341e68426 Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 11 Jan 2025 15:30:21 +0000 Subject: [PATCH] minor fixes --- backend/baseddata.service | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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]