31 lines
718 B
Python
31 lines
718 B
Python
#!/usr/bin/env python3
|
|
"""Convenience launcher for the Alpine Bits Python Server API (Development Mode)."""
|
|
|
|
import subprocess
|
|
|
|
# Run the API using uv with development settings
|
|
# This includes:
|
|
# - Auto-reload enabled for code changes
|
|
# - Single worker for easier debugging
|
|
# - Port 8080 for development
|
|
if __name__ == "__main__":
|
|
subprocess.run(
|
|
[
|
|
"uv",
|
|
"run",
|
|
"python",
|
|
"-m",
|
|
"alpine_bits_python.run_api",
|
|
"--host",
|
|
"0.0.0.0",
|
|
"--port",
|
|
"8080",
|
|
"--workers",
|
|
"1",
|
|
"--reload",
|
|
"--log-level",
|
|
"info",
|
|
],
|
|
check=False,
|
|
)
|