mirror of
https://github.com/thomiceli/opengist.git
synced 2025-07-09 09:28:03 +02:00
Better build/watch
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"flag"
|
||||
"fmt"
|
||||
"github.com/rs/zerolog/log"
|
||||
@ -14,9 +13,6 @@ import (
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
//go:embed templates/*/*.html public/manifest.json public/assets/*.js public/assets/*.css public/assets/*.svg
|
||||
var embedFS embed.FS
|
||||
|
||||
func initialize() {
|
||||
configPath := flag.String("config", "config.yml", "Path to a config file in YML format")
|
||||
flag.Parse()
|
||||
@ -61,7 +57,7 @@ func initialize() {
|
||||
log.Fatal().Err(err).Msg("Failed to initialize database")
|
||||
}
|
||||
|
||||
web.EmbedFS = embedFS
|
||||
web.EmbedFS = dirFS
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
Reference in New Issue
Block a user