Extract configuration from manager and wrapper

This commit is contained in:
2026-07-20 19:40:00 +02:00
parent 3827f803c5
commit 7dde7378b8
5 changed files with 16 additions and 8 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
import { spawn, ChildProcess } from "child_process";
import { ServerStartCommand } from "server-manager-shared";
import { SERVER_SCRIPT_PATH, SERVER_WORKING_DIRECTORY } from "./config";
interface ServerProcess {
@@ -68,10 +69,10 @@ export class ProcessManager {
const process = spawn(
"/home/heroes/HeroesOfValorServer.sh",
SERVER_SCRIPT_PATH,
args,
{
cwd:"/home/heroes",
cwd: SERVER_WORKING_DIRECTORY,
stdio:"pipe",
detached:true
}