summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-11 10:52:29 -0600
committermo khan <mo@mokhan.ca>2025-04-11 10:52:29 -0600
commit62255262c7edee46b98e4c69027df734300f5ae1 (patch)
treeba3324ad3af89a25b687de321ed0c41e534ad67c /cmd
parent7397964dacef3649de4a3977fb04330181632e81 (diff)
chore: build sparkled in docker
Diffstat (limited to 'cmd')
-rw-r--r--cmd/sparkled/main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/sparkled/main.go b/cmd/sparkled/main.go
index 893f708..416cc9b 100644
--- a/cmd/sparkled/main.go
+++ b/cmd/sparkled/main.go
@@ -9,8 +9,11 @@ import (
)
func main() {
+ bindAddr := env.Fetch("BIND_ADDR", ":http")
+ log.Printf("Listening on %v\n", bindAddr)
+
log.Fatal(http.ListenAndServe(
- env.Fetch("BIND_ADDR", ":http"),
+ bindAddr,
web.NewServer(nil),
))
}