Replies: 2 comments
-
See https://metacpan.org/pod/App::SimpleHTTPServer which uses https://metacpan.org/pod/Mojolicious::Plugin::Directory::Stylish for directory listings. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This doesn't give you the directory listing you're looking for, but FWIW,
your one-liner can be written more simply:
$ perl -Mojo -e 'app->static->paths->[0]=f; app->start' daemon -l http://
*:8000
…On Tue, Nov 16, 2021 at 3:55 PM b03cmans ***@***.***> wrote:
I am interested on Mojolicious one-liner which servicing static files on
specific folder and by default serving the files .
something like : python -m http.server 8000
this one-liner : perl -MMojolicious::Lite -MCwd -e
'app->static->paths->[0]=getcwd; app->start' daemon -l http://*:8000
which could do almost the same but *missing listing the files by default*
, is it possible to implement the same feature using Mojolicious one-liner
and enhancing it with option to grep the specific files let's say grepping
and serving only files end with .json
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1882>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAD6K6VT3AM562NRLLQSPJ3UMLHMHANCNFSM5IFLE6YA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am interested on Mojolicious one-liner which servicing static files on specific folder and by default serving the files .
something like :
python -m http.server 8000
this one-liner :
perl -MMojolicious::Lite -MCwd -e 'app->static->paths->[0]=getcwd; app->start' daemon -l http://*:8000
which could do almost the same but missing listing the files by default , is it possible to implement the same feature using Mojolicious one-liner and enhancing it with option to grep the specific files let's say grepping and serving only files end with .json
Beta Was this translation helpful? Give feedback.
All reactions