fixing bugs with ci pipeline

This commit is contained in:
GotthardG
2024-12-16 14:12:38 +01:00
parent cd13b16f0b
commit d6ac89b5d8
2 changed files with 6 additions and 4 deletions

View File

@ -93,6 +93,7 @@ if __name__ == "__main__":
# Get environment from an environment variable
environment = os.getenv("ENVIRONMENT", "dev")
port = int(os.getenv("PORT", 8000)) # Default to 8000 if PORT is not set
# Paths for SSL certificates
cert_path = "ssl/cert.pem"
@ -109,7 +110,7 @@ if __name__ == "__main__":
uvicorn.run(
app,
host=host,
port=8000,
port=port,
log_level="debug",
ssl_keyfile=key_path,
ssl_certfile=cert_path,