dev: fix _start_serve to set deps.data_dir/site_dir (not srv.*) after Step 3 split
This commit is contained in:
+3
-2
@@ -87,9 +87,10 @@ def _start_serve(data: Path, api_port: int, site: Path, api_host: str = "127.0.0
|
||||
"""Start bincio serve in a background thread."""
|
||||
import uvicorn
|
||||
import bincio.serve.server as srv
|
||||
from bincio.serve import deps
|
||||
|
||||
srv.data_dir = data
|
||||
srv.site_dir = site
|
||||
deps.data_dir = data
|
||||
deps.site_dir = site
|
||||
|
||||
config = uvicorn.Config(
|
||||
srv.app,
|
||||
|
||||
Reference in New Issue
Block a user