Add Docker, Kubernetes configurations, and CI workflows for deployment. Integrate Gin server for API, WebSocket support, and static file hosting. Refactor WebSocket gateway to use Gin router.
Dynamic Branch Deploy / build-and-deploy (push) Has been cancelled

This commit is contained in:
Sebastian Unterschütz committed 2026-01-04 15:14:55 +01:00
1 parent 2fb19d314f
commit 16f683a360
13 files changed
+872 -13

No files matched your search

+5 -5
View File
@@ -172,11 +172,11 @@ func main() {
log.Println("✅ Server bereit. Warte auf Spieler...")
// 9. WEBSOCKET-GATEWAY STARTEN (für Browser-Clients)
go StartWebSocketGateway("8080", ec)
// Block forever
select {}
// 9. GIN-SERVER STARTEN (statische Dateien + WebSocket)
router := SetupGinServer(ec, "8080")
if err := router.Run(":8080"); err != nil {
log.Fatal("❌ Gin-Server Fehler:", err)
}
}
func loadServerAssets(w *game.World) {