()
| 542 | |
| 543 | |
| 544 | def main() -> None: |
| 545 | host = "127.0.0.1" |
| 546 | raw_port = os.environ.get("PORT") |
| 547 | if not raw_port: |
| 548 | _log.error("PORT environment variable is required") |
| 549 | sys.exit(1) |
| 550 | port = int(raw_port) |
| 551 | |
| 552 | if _wsgi_user_app is not None: |
| 553 | _start_wsgi(host, port) |
| 554 | else: |
| 555 | _start_asgi(host, port) |
nothing calls this directly
no test coverage detected