diff --git a/integration_tests/base_routes.py b/integration_tests/base_routes.py index 4c67830f9..697f3e18a 100644 --- a/integration_tests/base_routes.py +++ b/integration_tests/base_routes.py @@ -196,8 +196,6 @@ async def redirect_route(request): if __name__ == "__main__": - ROBYN_URL = os.getenv("ROBYN_URL", "0.0.0.0") - ROBYN_PORT = int(os.getenv("ROBYN_PORT", "5000")) app.add_header("server", "robyn") current_file_path = pathlib.Path(__file__).parent.resolve() app.add_directory( @@ -206,4 +204,4 @@ async def redirect_route(request): index_file="index.html", ) app.startup_handler(startup_handler) - app.start(port=ROBYN_PORT, url=ROBYN_URL) + app.start(port=5000) diff --git a/robyn/__init__.py b/robyn/__init__.py index a5051bad3..41f2e8202 100644 --- a/robyn/__init__.py +++ b/robyn/__init__.py @@ -113,6 +113,10 @@ def start(self, url: str = "127.0.0.1", port: int = 5000): url = os.getenv("ROBYN_URL", url) port = int(os.getenv("ROBYN_PORT", port)) + logger.info( + "%sStarting server at %s:%s %s", Colors.OKGREEN, url, port, Colors.ENDC + ) + def init_processpool(socket): process_pool = [] @@ -158,7 +162,6 @@ def init_processpool(socket): process_pool = init_processpool(socket) - logger.info(f"{Colors.HEADER}Starting up \n{Colors.ENDC}") logger.info(f"{Colors.OKGREEN}Press Ctrl + C to stop \n{Colors.ENDC}") try: for process in process_pool: