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.
Some checks failed
Dynamic Branch Deploy / build-and-deploy (push) Has been cancelled
Some checks failed
Dynamic Branch Deploy / build-and-deploy (push) Has been cancelled
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user