ninja fix
This commit is contained in:
+2
-2
@@ -2,6 +2,6 @@ FROM alpine:3.20
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ../tmp/rating .
|
||||
COPY ../tmp/rating-orama .
|
||||
|
||||
CMD ["/app/rating"]
|
||||
CMD ["/app/rating-orama"]
|
||||
+6
-2
@@ -5,6 +5,7 @@ import (
|
||||
"encoding/gob"
|
||||
"gopher-toolbox/db"
|
||||
"log/slog"
|
||||
"net/http"
|
||||
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"github.com/gofiber/template/html/v2"
|
||||
@@ -23,9 +24,12 @@ func init() {
|
||||
//go:embed database/migrations
|
||||
var database embed.FS
|
||||
|
||||
//go:embed templates
|
||||
var templates embed.FS
|
||||
|
||||
func main() {
|
||||
engine := html.New("./views", ".html")
|
||||
engine.Reload(true)
|
||||
engine := html.NewFileSystem(http.FS(templates), ".gotmpl")
|
||||
engine.Directory = "templates"
|
||||
|
||||
app := app.NewExtendedApp(appName, version, ".env")
|
||||
app.Migrate(database)
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user