Added port configuration
This commit is contained in:
parent
b185fe013d
commit
584c1df91a
8
App.go
8
App.go
@ -107,7 +107,13 @@ func (app *App) Run() {
|
|||||||
return render(ctx, head, content)
|
return render(ctx, head, content)
|
||||||
})
|
})
|
||||||
|
|
||||||
s.Run(":8080")
|
address := os.Getenv("LISTEN")
|
||||||
|
|
||||||
|
if address == "" {
|
||||||
|
address = ":8080"
|
||||||
|
}
|
||||||
|
|
||||||
|
s.Run(address)
|
||||||
}
|
}
|
||||||
|
|
||||||
func load(path string) string {
|
func load(path string) string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user