Replace Astro hub build with standalone hub/index.html
CI / Python tests (push) Waiting to run
CI / Frontend build (push) Waiting to run

This commit is contained in:
Davide Scaini
2026-05-02 22:49:32 +02:00
parent 58def4bf02
commit 9540cdd6cb
3 changed files with 282 additions and 156 deletions
+2 -6
View File
@@ -145,7 +145,7 @@ def prepare_serve() -> None:
# ── 4. Hand off to bincio dev ─────────────────────────────────────────────────
def start_dev(mobile: bool = False, hub: bool = False) -> None:
def start_dev(mobile: bool = False) -> None:
section("Starting bincio dev")
print()
print(" \033[1mCredentials\033[0m")
@@ -163,9 +163,6 @@ def start_dev(mobile: bool = False, hub: bool = False) -> None:
env = os.environ.copy()
env.setdefault("PUBLIC_WIKI_URL", os.environ.get("WIKI_DEV_URL", "http://localhost:4322"))
# --hub: simulate bincio.org hub mode (/ becomes login + app selector)
if hub:
env.setdefault("PUBLIC_ACTIVITY_URL", "http://localhost:4321")
try:
subprocess.run(cmd, cwd=PROJECT_DIR, env=env)
@@ -193,7 +190,6 @@ def main() -> None:
parser.add_argument("--fresh", action="store_true", help="Wipe DATA_DIR before starting")
parser.add_argument("--no-dev", action="store_true", help="Stop after extract, skip bincio dev")
parser.add_argument("--mobile", action="store_true", help="Bind API to 0.0.0.0 for local mobile testing")
parser.add_argument("--hub", action="store_true", help="Simulate hub mode: / becomes login+app selector")
args = parser.parse_args()
raise_open_file_limit()
@@ -211,7 +207,7 @@ def main() -> None:
prepare_serve()
if not args.no_dev:
start_dev(mobile=args.mobile, hub=args.hub)
start_dev(mobile=args.mobile)
else:
print(f"\n\033[32mDone.\033[0m Data ready at {DATA_DIR}")
print(f"Run: uv run bincio dev --data-dir {DATA_DIR}\n")