The build-static.sh script renders every .md and .url source file
into static HTML for deployment to any web server or static hosting
service.
bash tools/build-static.sh <scheme://hostname> [output-dir]
scheme://hostname (required) - base URL of the site. Sets
SERVER_NAME and REQUEST_SCHEME for correct URL interpolation.output-dir (optional) - directory to write the generated site.
Defaults to in-place build in public_html.Build in-place:
bash tools/build-static.sh https://example.com
Build to a separate output directory:
bash tools/build-static.sh https://example.com ./dist
Build and deploy:
bash tools/build-static.sh https://example.com ./dist
rsync -av --delete ./dist/ user@host:/var/www/html/
public_html/ or current directory).html cache files).html files (except under lazysite/).md and .url file through the processor.md and .url source
files from the outputcgi-bin/lazysite-processor.pl relative
to the docroot (checked at both ../cgi-bin/ and ./cgi-bin/).url pages are fetched during the buildSERVER_PORT is set to 443 and HTTPS to "on" during the build