@mytec: iter2.1 ready for testing

This commit is contained in:
2026-01-31 14:26:11 +02:00
parent cdbf0127bf
commit fa55fec94a
11 changed files with 780 additions and 1 deletions

22
backend/run_server.py Normal file
View File

@@ -0,0 +1,22 @@
"""Entry point for PyInstaller bundle"""
import os
import sys
# Set base path for PyInstaller
if getattr(sys, 'frozen', False):
# Running as compiled
os.chdir(os.path.dirname(sys.executable))
import uvicorn
from app.main import app
if __name__ == '__main__':
host = os.environ.get('RFCP_HOST', '127.0.0.1')
port = int(os.environ.get('RFCP_PORT', '8888'))
uvicorn.run(
app,
host=host,
port=port,
log_level='info',
)