From 038ba7ae4f6b56ae334d2351ac810c1ef23d8705 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 1 Apr 2024 19:20:12 +0200 Subject: Print served URL via Server.url --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f0db416..9e806ba 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,7 +8,7 @@ const metricsServed = Bun.serve(metricsServer); console.info(`Metrics server started on port ${metricsServed.port}`); const served = Bun.serve(server); -console.info(`Serving website on http://${served.hostname}:${served.port}/`); +console.info(`Serving website on ${served.url}`); process.on("SIGTERM", function () { log.info("SIGTERM received, shutting down..."); -- cgit 1.4.1