chore: initial import
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Startet die boehmitools-Suite.
|
||||
|
||||
python run.py # Standard-Port 8080
|
||||
PORT=9090 python run.py # anderer Port
|
||||
|
||||
Für die Entwicklung mit Neuladen:
|
||||
uvicorn core.app:app --reload
|
||||
"""
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
BASE_DIR = Path(__file__).resolve().parent
|
||||
sys.path.insert(0, str(BASE_DIR))
|
||||
|
||||
if __name__ == "__main__":
|
||||
import uvicorn
|
||||
|
||||
port = int(os.environ.get("PORT", "8080"))
|
||||
host = os.environ.get("HOST", "0.0.0.0")
|
||||
print("=" * 64)
|
||||
print(" boehmitools")
|
||||
print(f" Im Browser öffnen: http://<server-ip>:{port}")
|
||||
print("=" * 64)
|
||||
uvicorn.run("core.app:app", host=host, port=port, log_level="info")
|
||||
Reference in New Issue
Block a user