diff --git a/run.py b/run.py index 09e853e..bd11018 100644 --- a/run.py +++ b/run.py @@ -1,5 +1,10 @@ import uvicorn -from src.config import PORT +from src.config import PORT, HOST if __name__ == "__main__": - uvicorn.run("src.main:app", host="0.0.0.0", port=int(PORT), reload=True) + uvicorn.run( + "src.main:app", + host=HOST, + port=PORT, + reload=True + ) \ No newline at end of file diff --git a/src/__pycache__/config.cpython-311.pyc b/src/__pycache__/config.cpython-311.pyc index 5de8fb1..8b0961e 100644 Binary files a/src/__pycache__/config.cpython-311.pyc and b/src/__pycache__/config.cpython-311.pyc differ diff --git a/src/config.py b/src/config.py index e255632..5565a43 100644 --- a/src/config.py +++ b/src/config.py @@ -47,6 +47,7 @@ config = get_config() LOG_LEVEL = config("LOG_LEVEL", default=logging.WARNING) ENV = config("ENV", default="local") PORT = config("PORT", cast=int, default=8000) +HOST = config("HOST", default="localhost") # database