Skip to content

Commit

Permalink
fix: bug with static root for web server
Browse files Browse the repository at this point in the history
  • Loading branch information
dd84ai committed Jan 11, 2025
1 parent a22f063 commit f176468
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.22.5
require (
github.com/a-h/templ v0.2.747
github.com/darklab8/fl-configs v0.106.4
github.com/darklab8/fl-darkcore v0.8.1
github.com/darklab8/fl-darkcore v0.8.2
github.com/darklab8/fl-data-discovery v0.4.0
github.com/darklab8/go-typelog v0.6.2
github.com/darklab8/go-utils v0.21.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ github.com/a-h/templ v0.2.747 h1:D0dQ2lxC3W7Dxl6fxQ/1zZHBQslSkTSvl5FxP/CfdKg=
github.com/a-h/templ v0.2.747/go.mod h1:69ObQIbrcuwPCU32ohNaWce3Cb7qM5GMiqN1K+2yop4=
github.com/darklab8/fl-configs v0.106.4 h1:5gI1BHWL79z0beDeEafunTAh7EJM2U5umI0zcTLD7Yg=
github.com/darklab8/fl-configs v0.106.4/go.mod h1:fbyKxEPv22FD2bvahG/Y6kYyhyvCMg0+J6mH230iB3s=
github.com/darklab8/fl-darkcore v0.8.1 h1:VEJD/wr0EACRlhY2mzPGISYcrv5FPemmfywLGQMrXgs=
github.com/darklab8/fl-darkcore v0.8.1/go.mod h1:7CLmeqBIg71S/WrR/v75irT4GKZz420UooF/kC97mF8=
github.com/darklab8/fl-darkcore v0.8.2 h1:hEgPjUCjT22zHmaWJM6tr/g5IL7KfLuaryA9IC7ktxg=
github.com/darklab8/fl-darkcore v0.8.2/go.mod h1:7CLmeqBIg71S/WrR/v75irT4GKZz420UooF/kC97mF8=
github.com/darklab8/fl-data-discovery v0.4.0 h1:cUacP+N04/PrYl4cmw687BAaQWVJI32scePjLfmqxEI=
github.com/darklab8/fl-data-discovery v0.4.0/go.mod h1:SgRh0N3cWrhslXVkc5LJXK52Mw4+Fdsbmv+0qkNJ6QI=
github.com/darklab8/go-typelog v0.6.2 h1:R6urrs4zgtjWfAngB7UclxpkVMA1uW3hEw7PEgSU7pU=
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func main() {

go web.NewWeb(stat_fs,
web.WithMutexableData(app_data),
web.WithSiteRoot(settings.Env.SiteRoot),
).Serve(web.WebServeOpts{})

app_data.Lock()
Expand Down Expand Up @@ -103,7 +104,7 @@ func main() {
web.NewWeb(
relay_fs,
web.WithMutexableData(app_data),
web.WithSiteRootAcceptors(settings.Env.GetSiteRootAcceptors(), settings.Env.SiteRoot),
web.WithSiteRoot(settings.Env.SiteRoot),
).Serve(web.WebServeOpts{Port: ptr.Ptr(8080)})
}

Expand Down

0 comments on commit f176468

Please sign in to comment.