Vladimir Zagainov 2f1f1ef7d6
All checks were successful
CI / lint (push) Successful in 17s
CI / test (push) Successful in 18s
CI / build (push) Successful in 18s
CI / docker (push) Successful in 1m1s
fix: embed HTML templates into binary via go:embed
Switched from runtime file-based template loading (os.Stat + ParseGlob)
to compile-time embedding (embed.FS + ParseFS). Templates are now
bundled into the binary — no need to COPY them into Docker image.

This fixes the fallback response issue where h.loaded was always false
because templates weren't present in the container filesystem.
2026-06-04 06:51:11 +03:00
2026-05-23 17:57:37 +03:00
2026-05-30 19:53:37 +03:00
2026-05-23 17:57:37 +03:00

MrixsCraft Server

Minecraft серверная часть на Go (net/http + PostgreSQL).

Сборка

go build -o mrixscraft-server ./cmd/server

Запуск

export SERVER_PORT=8080
export DATABASE_URL="postgres://user:pass@localhost:5432/mrixscraft"

go run ./cmd/server

Переменные окружения

Переменная Описание По умолчанию
SERVER_PORT Порт HTTP-сервера 8080
DATABASE_URL DSN PostgreSQL
Description
No description provided
Readme 287 KiB
Languages
Go 65.6%
HTML 34%
Dockerfile 0.4%