Skip to content

Instantly share code, notes, and snippets.

View book's full-sized avatar

Philippe Bruhat (BooK) book

View GitHub Profile
@book
book / static.psgi
Last active September 17, 2025 06:30
Static Plack Web Server
# run from the directory to be served, with:
#
# plackup -s Starman -p 5555 static.psgi
#
use strict;
use warnings;
use Plack::App::Directory;
my $static = Plack::App::Directory->new( { root => shift // '.' } )->to_app;
my $app = sub {
my $env = shift;