tapio / live-server

A simple development http server with live reload capability.
http://tapiov.net/live-server/
4.41k stars 484 forks source link

[Suggestion] Add way to kill specific running instances of live-server #329

Open n-ham opened 4 years ago

n-ham commented 4 years ago

Sometimes it's nice to start live-server and leave it running in the background for several websites at the same time. Currently there does not appear to be a good way to kill one of these background instances as they're all running as a process called node? It would be good if you could specify a port number for example and have the live-server instance serving a website on that port end.

The use case that has me wanting this is for my website generator Nift (https://nift.cc), users can add in to a pre serve script to start up live-server, but there's currently no good way to then kill just one instance of live-server without killing all running instances.