Skip to content

Commit 04369b4

Browse files
committed
fix local setup
1 parent 5cb8dbf commit 04369b4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

relay/src/serverProcess.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,22 +89,20 @@ export class GameManager {
8989
// If the game still uses a custom Lean server, use it.
9090
// Note: `cwd` is important to be the `bin` directory as `Watchdog` calls `./gameserver` again
9191
serverProcess = cp.spawn(
92-
path.join(".", path.basename(customLeanServer)),
92+
"./" + path.basename(customLeanServer),
9393
["--server", game_dir],
9494
{ cwd: path.dirname(customLeanServer) }
9595
);
9696
} else {
9797
serverProcess = cp.spawn("lake", ["serve", "--"], { cwd: game_dir });
9898
}
9999
} else {
100-
console.log(path.dirname(customLeanServer))
101100
serverProcess = cp.spawn("../../scripts/bubblewrap.sh",
102101
[game_dir, path.join(this.dir, '..', '..', '..'), customLeanServer ? "true" : "false"],
103102
{ cwd: this.dir });
104103
}
105104

106-
serverProcess.on('error', error => console.error(`Launching Lean Server failed: ${error}`)
107-
);
105+
serverProcess.on('error', error => console.error(`Launching Lean Server failed: ${error}`));
108106
if (serverProcess.stderr !== null) {
109107
serverProcess.stderr.on('data', data => console.error(`Lean Server: ${data}`)
110108
);

0 commit comments

Comments
 (0)