use hypercorn in production without uv bload
Build and Push Docker Container / build-and-push (push) Successful in 48s

This commit is contained in:
2026-04-03 14:58:41 +02:00
parent 2d7a2505d4
commit 3d7f92e20f
2 changed files with 20 additions and 4 deletions
+16
View File
@@ -0,0 +1,16 @@
from server.Server import Server
import os
server = Server(
data_path=os.path.dirname(__file__),
snake_type=os.environ.get("SNAKE", "BestBattleSnake"),
storage_type=os.environ.get("STORAGE", "LocalStorage"),
store_game_when_win_and_moves_are_bigger_as=int(os.environ.get("STORE_IF_WIN_AND_MOVES_ARE_BIGGER_AS", 10)),
debug=os.environ.get("DEBUG_SERVER", False),
check_tls_security=False,
)
if os.environ.get("STORE_GAME_HISTORY", None):
server.enable_store_game_state()
app = server.app