🚚 Moved assets to web/static

develop
Maxim Lebedev 6 days ago
parent 0585d51f66
commit 27bab72323
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5

@ -16,6 +16,7 @@ import (
"net/url"
"os"
"os/signal"
"path/filepath"
"runtime"
"runtime/pprof"
"strings"
@ -106,7 +107,7 @@ var (
//nolint:gochecknoglobals
var cpuProfilePath, memProfilePath string
//go:embed assets/*
//go:embed web/static/*
var staticFS embed.FS
//nolint:gochecknoinits
@ -156,7 +157,7 @@ func main() {
var opts NewAppOptions
var err error
if opts.Static, err = fs.Sub(staticFS, "assets"); err != nil {
if opts.Static, err = fs.Sub(staticFS, filepath.Join("web", "static")); err != nil {
logger.Fatalln(err)
}

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before

Width:  |  Height:  |  Size: 492 B

After

Width:  |  Height:  |  Size: 492 B

Loading…
Cancel
Save