David Hellyer Sign out Sign in

Development server

Run lazysite locally without Apache using the built-in dev server.

Development server

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.

Invocation

perl tools/lazysite-server.pl

Opens at http://localhost:8080/ serving the starter/ directory.

Options

Example

Serve 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

Default behaviour

Notes