tapio / live-server

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

Is it possible to make live-server run CGI scripts? #369

Open nonopolarity opened 3 years ago

nonopolarity commented 3 years ago
Before submitting an issue, please, see https://github.com/tapio/live-server#troubleshooting

Issue description

I am able to use

ruby -run -e httpd -- -p 8080 .

to run a WeBrick server and it can run CGI scripts. But if I use live-server, then it'd simply cause the browser download the file foo.cgi as some kind of text file.

Is it possible to make live-server run CGI scripts? Possibly with a flag such as

live-server --support-cgi

?

Software details