# HG changeset patch # User Adam Chlipala # Date 1227034043 18000 # Node ID cbeb1683dc6ac72aa62bb5fc80717a3dbd125f54 # Parent e30c135482b398d45756c1d3a48aea6fe2b63a35 Extend prose about server .exes diff -r e30c135482b3 -r cbeb1683dc6a demo/prose --- a/demo/prose Tue Nov 18 13:28:44 2008 -0500 +++ b/demo/prose Tue Nov 18 13:47:23 2008 -0500 @@ -13,7 +13,7 @@
urweb demo/hello
-to build the "Hello World" demo application. Whether building the pieces separately or all at once with the -demo flag, a standalone web server executable is generated. The -demo command line will generate demo/demo.exe, and the other command line will generate demo/hello.exe. Either can be run with a single argument, an integer specifying how many request handler pthreads to spawn. The server accepts requests on port 8080.

+to build the "Hello World" demo application. Whether building the pieces separately or all at once with the -demo flag, a standalone web server executable is generated. The -demo command line will generate demo/demo.exe, and the other command line will generate demo/hello.exe. Either can be run with no arguments to start a single-threaded server accepting requests on port 8080. Pass the flag -h to see which options are available.

The -demo version also generates some HTML in a subdirectory out of the demo directory. It is easy to set Apache up to serve these HTML files, and to proxy out to the Ur/Web web server for dynamic page requests. This configuration works for me, where DIR is the location of an Ur/Web source distribution.