Open schettn opened 4 months ago
My current workaround is to call:
const {stdout} = await $`npx -p which which pylon-server`
const binPath = stdout.toString().trim()
Strangely await $`npx -p which which pylon-server`.text()
kills the process silently.
I use the following:
The problem is that when I want to spawn
bun run pylon-server
thePID
is not from/Users/schettn/Documents/pylon/node_modules/.bin/pylon-server
. Instead thePID
ofcurrentProc
is from the startup process.Therefore I cannot call
currentProc.kill()
and restart my server.Originally posted by @schettn in https://github.com/oven-sh/bun/issues/11400#issuecomment-2222092637