in reply to one-line web server

Re: Simple http server one-liner for some static files? can be a starting point.

other possibilties are present with new web Perl modules:

perl -e 'use base qw(Net::Server::PSGI); main->run(port => 8080, ipv = +> "*")'

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: one-line web server
by Anonymous Monk on Jun 14, 2016 at 10:21 UTC

    Thank you very much for your answer and for pointing me to that discussion.

    After reading it I'm afraid that, unfortunately, I'd better suggest the python command since the people using the files on repository may not have experience/permission to install modules, and even the syntax might frighten them if they don't use Perl.

    Thanks for your time!

      After reading it I'm afraid that, unfortunately, I'd better suggest the python command since the people using the files on repository may not have experience/permission to install modules, and even the syntax might frighten them if they don't use Perl.

      If they're not going to program it, if they can't even install software, why use a programmers toolkit, why not simply use an end product, nginx or apache or whatever?

        Probably I did not explain myself clear enough or I'm missing something... I'm going to suggest such command so that when they edit a page of the website on their personal computers they can see in the browser how it renders.