feat: added env variables HOST_APP, PORT_APP, IS_RELOAD in code

This commit is contained in:
Arduinum628
2025-12-15 13:52:28 +03:00
parent 85cdf2bc20
commit ce7f446122
3 changed files with 14 additions and 6 deletions

View File

@@ -1,12 +1,14 @@
import uvicorn
from web_robot_control.settings import settings
def start_app():
"""Функция запуска приложения"""
uvicorn.run(
'web_robot_control.main:app',
host='127.0.0.1',
port=8000,
reload=True
host=settings.host_app,
port=settings.port_app,
reload=settings.is_reload
)