ninja fix
This commit is contained in:
parent
6f78073431
commit
7e5baa96e8
3
Makefile
3
Makefile
@ -126,9 +126,8 @@ build-linux:
|
|||||||
.PHONY: pack-docker
|
.PHONY: pack-docker
|
||||||
# Run docker build for pack binary and assets to Docker container.
|
# Run docker build for pack binary and assets to Docker container.
|
||||||
pack-docker:
|
pack-docker:
|
||||||
make test
|
|
||||||
make build-linux
|
make build-linux
|
||||||
docker build -t $(MOD_NAME):${version} -t $(MOD_NAME):latest .
|
cd $(CORE_DIR) && docker build -t $(MOD_NAME):${version} -t $(MOD_NAME):latest .
|
||||||
|
|
||||||
.PHONY: remove-debug
|
.PHONY: remove-debug
|
||||||
# Remove all debug entries for reduce size binary.
|
# Remove all debug entries for reduce size binary.
|
||||||
|
|||||||
@ -2,6 +2,6 @@ FROM alpine:3.20
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY ../tmp/rating .
|
COPY ../tmp/rating-orama .
|
||||||
|
|
||||||
CMD ["/app/rating"]
|
CMD ["/app/rating-orama"]
|
||||||
@ -5,6 +5,7 @@ import (
|
|||||||
"encoding/gob"
|
"encoding/gob"
|
||||||
"gopher-toolbox/db"
|
"gopher-toolbox/db"
|
||||||
"log/slog"
|
"log/slog"
|
||||||
|
"net/http"
|
||||||
|
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"github.com/gofiber/template/html/v2"
|
"github.com/gofiber/template/html/v2"
|
||||||
@ -23,9 +24,12 @@ func init() {
|
|||||||
//go:embed database/migrations
|
//go:embed database/migrations
|
||||||
var database embed.FS
|
var database embed.FS
|
||||||
|
|
||||||
|
//go:embed templates
|
||||||
|
var templates embed.FS
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
engine := html.New("./views", ".html")
|
engine := html.NewFileSystem(http.FS(templates), ".gotmpl")
|
||||||
engine.Reload(true)
|
engine.Directory = "templates"
|
||||||
|
|
||||||
app := app.NewExtendedApp(appName, version, ".env")
|
app := app.NewExtendedApp(appName, version, ".env")
|
||||||
app.Migrate(database)
|
app.Migrate(database)
|
||||||
|
|||||||
Binary file not shown.
Loading…
Reference in New Issue
Block a user