From d032cdc98f1c05306cdab9cff41362db2e6bfa06 Mon Sep 17 00:00:00 2001 From: defanor Date: Sun, 3 Feb 2019 22:57:11 +0300 Subject: Replace wai-cli with wai-handler-fastcgi Another step towards making pgxhtml more lightweight, dependencies-wise. --- example/README.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'example') diff --git a/example/README.md b/example/README.md index b6cfbfa..d70b595 100644 --- a/example/README.md +++ b/example/README.md @@ -14,5 +14,20 @@ them. `list.xsl` includes report and search forms, and lists the bugs. -To quickly try it, run `pgxhtml --devlogging` in this directory, -with database connection environment variables set if needed. +To quickly try it, run `spawn-fcgi -p 5152 /bin/env pgxhtml` in this +directory, with database connection environment variables set if +needed, an `127.0.0.1 pgxhtml-test` entry in `/etc/hosts`, and a nginx +config akin to the following: + +``` +server { + listen localhost:80; + server_name pgxhtml-test; + + location / { + include fastcgi_params; + fastcgi_param PATH_INFO $fastcgi_script_name; + fastcgi_pass 127.0.0.1:5152; + } +} +``` -- cgit v1.2.3