def METHOD_NAME(self) -> NoReturn:
    self.prepare_environment()
    if self.debug or os.environ.get("SENTRY_RUNNING_UWSGI") == "0":
        from wsgiref.simple_server import make_server
        from sentry.wsgi import application
        assert os.environ.get("UWSGI_MODULE") == "sentry.wsgi:application"
        host, port = os.environ["UWSGI_HTTP_SOCKET"].split(":")
        httpd = make_server(host, int(port), application)  # type: ignore[arg-type]  # typeddjango/django-stubs#1053
        httpd.serve_forever()
        raise AssertionError("unreachable")
    else:
        # TODO: https://github.com/lincolnloop/pyuwsgi-wheels/pull/17
        cmd = (sys.executable, "-c", PYUWSGI_PROG)
        os.execvp(cmd[0], cmd)