Changed ProcessController to handle Server as child subprocess

This commit is contained in:
Malasaur 2025-12-01 22:43:15 +01:00
parent 9742cafad9
commit a008bc27fa
No known key found for this signature in database
5 changed files with 52 additions and 53 deletions

View file

@ -4,7 +4,6 @@ from dotenv import dotenv_values
class Config:
data = dotenv_values()
MINECRAFTD_PASSWORD: str | None = data.get("MINECRAFTD_PASSWORD")
PID_FILE: str = data.get("PID_FILE") or "server.pid"
START_COMMAND: str = data.get("START_COMMAND") or "python proc.py"
SERVER_HOST: str = data.get("SERVER_HOST") or "localhost"
SERVER_PORT: int = int(data.get("SERVER_PORT") or 25565)