Added SERVER_PATH to .env
This commit is contained in:
parent
dbc82a3bfa
commit
6a80582fbe
2 changed files with 3 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ class ProcessController:
|
|||
self.start_command: list[str] = shlex.split(
|
||||
Path(Config.START_COMMAND_FILE).read_text()
|
||||
)
|
||||
self.cwd = Config.SERVER_PATH
|
||||
self.process: Popen | None = None
|
||||
self.last_status: Literal[ProcessStatus.STOPPED, ProcessStatus.CRASHED] = (
|
||||
ProcessStatus.STOPPED
|
||||
|
|
@ -43,6 +44,7 @@ class ProcessController:
|
|||
stderr=None,
|
||||
stdin=None,
|
||||
start_new_session=True,
|
||||
cwd=self.cwd,
|
||||
)
|
||||
logger.info(
|
||||
"ProcessController.start() - Started process with PID: %s",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue