diff options
author | defanor <defanor@uberspace.net> | 2019-02-03 22:57:11 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2019-02-03 22:57:11 +0300 |
commit | d032cdc98f1c05306cdab9cff41362db2e6bfa06 (patch) | |
tree | 8c82e3169f9b89764549932b6c837e98cd8c5714 /example | |
parent | 83a90895a5b6f1267ad272bfe23a6b604068d3c0 (diff) |
Replace wai-cli with wai-handler-fastcgi
Another step towards making pgxhtml more lightweight,
dependencies-wise.
Diffstat (limited to 'example')
-rw-r--r-- | example/README.md | 19 |
1 files changed, 17 insertions, 2 deletions
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; + } +} +``` |