diff --git a/App.go b/App.go index 0b9fd98..ecc18b8 100644 --- a/App.go +++ b/App.go @@ -107,7 +107,13 @@ func (app *App) Run() { return render(ctx, head, content) }) - s.Run(":8080") + address := os.Getenv("LISTEN") + + if address == "" { + address = ":8080" + } + + s.Run(address) } func load(path string) string {