Skip to content

Commit

Permalink
fix path of LeanProject in dev mode
Browse files Browse the repository at this point in the history
#Fixes #2
  • Loading branch information
abentkamp committed Oct 11, 2023
1 parent da78703 commit eb17fc3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions server/WebsocketServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,19 @@ class ClientConnection {
}

startProcess () {
let cmd, cmdArgs;
let cmd, cmdArgs, cwd;
if (this.useBubblewrap) {
cmd = "./bubblewrap.sh";
// Note for MacOS: use "--platform=linux/amd64"
cmdArgs = [];
cwd = __dirname;
} else{
console.warn("Running without Bubblewrap container!")
cmd = "lean";
cmdArgs = ["--server"];
cwd = __dirname + "/LeanProject";
}

this.lean = spawn(cmd, cmdArgs, { cwd: __dirname })
this.lean = spawn(cmd, cmdArgs, { cwd })
}
}

Expand Down

0 comments on commit eb17fc3

Please sign in to comment.