I am looking for Mojolicious one liner for serving static files and listing the directory by default
I come to this one liner :
perl -Mojo -E "a->static->paths(['c:\temp']);a->start" daemon
which serving static files on specific directory but its not listing the files by default , any idea if it can be changed to also list the files by default as one liner ?
Not a Mojo solution, but still Perl. You can use http_this
to achieve the same thing. See the App::HTTPThis package.
$ http_this
Exporting '.', available at:
http://127.0.0.1:7007/
There are also some other packages that do https, run CGI, serve files on an FTP server or even share them over WebDAV.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With