Mercurial > urweb
comparison demo/prose @ 498:cbeb1683dc6a
Extend prose about server .exes
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 18 Nov 2008 13:47:23 -0500 |
parents | 20fab0e96217 |
children | 7ef4b2911b09 |
comparison
equal
deleted
inserted
replaced
497:e30c135482b3 | 498:cbeb1683dc6a |
---|---|
11 | 11 |
12 <p>These project files can also be built separately. For example, you could run | 12 <p>These project files can also be built separately. For example, you could run |
13 | 13 |
14 <blockquote><pre>urweb demo/hello</pre></blockquote> | 14 <blockquote><pre>urweb demo/hello</pre></blockquote> |
15 | 15 |
16 to build the "Hello World" demo application. Whether building the pieces separately or all at once with the <tt>-demo</tt> flag, a standalone web server executable is generated. The <tt>-demo</tt> command line will generate <tt>demo/demo.exe</tt>, and the other command line will generate <tt>demo/hello.exe</tt>. 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.</p> | 16 to build the "Hello World" demo application. Whether building the pieces separately or all at once with the <tt>-demo</tt> flag, a standalone web server executable is generated. The <tt>-demo</tt> command line will generate <tt>demo/demo.exe</tt>, and the other command line will generate <tt>demo/hello.exe</tt>. Either can be run with no arguments to start a single-threaded server accepting requests on port 8080. Pass the flag <tt>-h</tt> to see which options are available.</p> |
17 | 17 |
18 <p>The <tt>-demo</tt> version also generates some HTML in a subdirectory <tt>out</tt> 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 <tt>DIR</tt> is the location of an Ur/Web source distribution. | 18 <p>The <tt>-demo</tt> version also generates some HTML in a subdirectory <tt>out</tt> 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 <tt>DIR</tt> is the location of an Ur/Web source distribution. |
19 | 19 |
20 <blockquote><pre>Alias /demo/ "DIR/demo/out/" | 20 <blockquote><pre>Alias /demo/ "DIR/demo/out/" |
21 | 21 |