Include frontends in wheel, fix systemd WorkingDirectory
This commit is contained in:
@@ -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
0
frontends/__init__.py
Normal file
0
frontends/api/__init__.py
Normal file
0
frontends/api/__init__.py
Normal file
0
frontends/cli/__init__.py
Normal file
0
frontends/cli/__init__.py
Normal file
0
frontends/web/__init__.py
Normal file
0
frontends/web/__init__.py
Normal file
@@ -111,7 +111,7 @@ include = [
|
||||
]
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["src/stegasoo"]
|
||||
packages = ["src/stegasoo", "frontends"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
|
||||
Reference in New Issue
Block a user