gunicorn issue
This commit is contained in:
@@ -234,6 +234,12 @@ def create_gunicorn_app() -> Flask:
|
||||
return create_app(config_path, verify_tls, api_key, configured_url_prefix())
|
||||
|
||||
|
||||
# Older Gunicorn releases do not support --factory. Expose a WSGI callable at
|
||||
# import time so they can load this application with `app:gunicorn_app`.
|
||||
if __name__ != "__main__":
|
||||
gunicorn_app = create_gunicorn_app()
|
||||
|
||||
|
||||
def main() -> None:
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("--config", type=Path, default=ROOT / "hue.yaml", help="Dashboard YAML file")
|
||||
|
||||
Reference in New Issue
Block a user