514-labs / moose

The developer framework for your data & analytics stack
https://www.moosejs.com
MIT License
24 stars 4 forks source link

Handle port conflict for webserver #1352

Open linear[bot] opened 3 weeks ago

linear[bot] commented 3 weeks ago

Currently if something is running on the port that cli webserver needs, it errors out with an "address in use" message. There's no indication which port it's trying to use.

Screenshot 2024-06-03 at 4.16.52 PM.png

If user knows the port number, they could debug it with an lsof command then kill the process that's using that port. We should look into whether this can be automated.

E.g. User runs dev -> port conflict error -> cli runs lsof to get the process that's running on that port -> cli provides a friendly error message about that process and how to terminate it.

linear[bot] commented 3 weeks ago

514-1029 Handle port conflict for webserver