Extract configuration from manager and wrapper
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user