diff options
author | Alan Pearce | 2024-04-01 19:20:12 +0200 |
---|---|---|
committer | Alan Pearce | 2024-04-01 19:20:12 +0200 |
commit | 038ba7ae4f6b56ae334d2351ac810c1ef23d8705 (patch) | |
tree | ea0415959b9f9b472d0cb39d5027b8918e903a21 /src | |
parent | f7988ab62cfd9e007acb70a0bc6a377d7bfb5378 (diff) | |
download | website-038ba7ae4f6b56ae334d2351ac810c1ef23d8705.tar.lz website-038ba7ae4f6b56ae334d2351ac810c1ef23d8705.tar.zst website-038ba7ae4f6b56ae334d2351ac810c1ef23d8705.zip |
Print served URL via Server.url
Diffstat (limited to 'src')
-rw-r--r-- | src/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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..."); |