fixing bugs with ci pipeline
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user