Final fixes before release

This commit is contained in:
Xoconoch
2025-08-07 21:15:28 -06:00
parent 25663391f0
commit 1916b85f2d
2 changed files with 16 additions and 8 deletions

16
app.py
View File

@@ -51,7 +51,7 @@ def setup_logging():
# Configure root logger
root_logger = logging.getLogger()
root_logger.setLevel(logging.INFO)
root_logger.setLevel(logging.DEBUG)
# Clear any existing handlers from the root logger
if root_logger.hasHandlers():
@@ -268,11 +268,19 @@ if __name__ == "__main__":
app = create_app()
# Run with uvicorn
# Use HOST environment variable if present, otherwise fall back to IPv4 wildcard
host = os.getenv("HOST", "0.0.0.0")
# Allow overriding port via PORT env var, with default 7171
try:
port = int(os.getenv("PORT", "7171"))
except ValueError:
port = 7171
uvicorn.run(
app,
host="${HOST:-0.0.0.0}",
port=7171,
host=host,
port=port,
log_level="info",
access_log=True
)

View File

@@ -1,7 +1,7 @@
fastapi==0.115.6
uvicorn[standard]==0.32.1
celery==5.5.3
deezspot-spotizerr==2.2.2
deezspot-spotizerr==2.2.3
httpx==0.28.1
bcrypt==4.2.1
PyJWT==2.10.1