in reply to one-line web server

Install Mojolicious first, then
perl -Mojo -e'a->static->paths->[0] = "."; a->start' daemon
You may want to generate an index.html too:
ls | perl -lne 'print qq{<br><a href="$_">$_</a>}' > index.html