2f1f1ef7d66523abf1f9f89e8a19d135431f52e3
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.
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
Languages
Go
65.6%
HTML
34%
Dockerfile
0.4%