The built-in dev server runs lazysite locally for development and testing. It invokes the processor for each request and serves static assets directly. Not for production use.
perl tools/lazysite-server.pl
Opens at http://localhost:8080/ serving the starter/ directory.
--port PORT - port to listen on (default: 8080)--docroot PATH - document root (default: ../starter relative to
the script)--processor PATH - processor script path (default:
../lazysite-processor.pl relative to the script)--cache - respect cache files (default: always regenerate)--help - show helpServe your own site:
perl tools/lazysite-server.pl --docroot /path/to/public_html
Serve on a different port with caching enabled:
perl tools/lazysite-server.pl --port 3000 --cache
LAZYSITE_NOCACHE=1) so every request
regenerates the page - edit and refresh to see changes.md, .url, .tt, and .conf extensions are never
served as static files.html files are skipped when a matching .md or .url
source exists - the processor always handles theseQUERY_STRINGTime::HiRes is
available0.0.0.0 (all interfaces)