Include frontends in wheel, fix systemd WorkingDirectory

This commit is contained in:
Aaron D. Lee
2026-01-10 16:58:16 -05:00
parent 3b062458e3
commit 530e5debef
6 changed files with 3 additions and 1 deletions

View File

@@ -86,6 +86,7 @@ After=network.target
[Service]
Type=simple
User=stegasoo
WorkingDirectory=/opt/stegasoo/venv/lib/python3.12/site-packages/frontends/web
Environment="PATH=/opt/stegasoo/venv/bin"
ExecStart=/opt/stegasoo/venv/bin/gunicorn -b 127.0.0.1:5000 app:app
Restart=on-failure
@@ -103,6 +104,7 @@ After=network.target
[Service]
Type=simple
User=stegasoo
WorkingDirectory=/opt/stegasoo/venv/lib/python3.12/site-packages/frontends/api
Environment="PATH=/opt/stegasoo/venv/bin"
ExecStart=/opt/stegasoo/venv/bin/uvicorn main:app --host 127.0.0.1 --port 8000
Restart=on-failure

0
frontends/__init__.py Normal file
View File

View File

View File

View File

View File

@@ -111,7 +111,7 @@ include = [
]
[tool.hatch.build.targets.wheel]
packages = ["src/stegasoo"]
packages = ["src/stegasoo", "frontends"]
[tool.pytest.ini_options]
testpaths = ["tests"]