minor fixes
This commit is contained in:
parent
c64e22f007
commit
e83fdd6502
|
@ -1,5 +1,5 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Gunicorn instance to serve baseddata.io
|
Description=Uvicorn instance to serve baseddata.io
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
@ -7,7 +7,7 @@ User=admin
|
||||||
Group=www-data
|
Group=www-data
|
||||||
WorkingDirectory=/var/www/baseddata.io/backend
|
WorkingDirectory=/var/www/baseddata.io/backend
|
||||||
Environment="PATH=/var/www/baseddata.io/.venv/bin"
|
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]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -14,7 +14,7 @@ in-project = true
|
||||||
python = "^3.11"
|
python = "^3.11"
|
||||||
fastapi = "^0.115.4"
|
fastapi = "^0.115.4"
|
||||||
uvicorn = "^0.32.0"
|
uvicorn = "^0.32.0"
|
||||||
psycopg2 = "^2.9.10"
|
psycopg2-binary = "^2.9.10"
|
||||||
|
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
|
|
Loading…
Reference in New Issue