paulb@328 | 1 | <?xml version="1.0" encoding="iso-8859-1"?> |
paulb@328 | 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
paulb@328 | 3 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
paulb@328 | 4 | <html xmlns="http://www.w3.org/1999/xhtml"> |
paulb@328 | 5 | <head> |
paulb@328 | 6 | <title>Deploying a WebStack Application</title> |
paulb@328 | 7 | <meta name="generator" content="amaya 8.1a, see http://www.w3.org/Amaya/" /> |
paulb@328 | 8 | <link href="styles.css" rel="stylesheet" type="text/css" /> |
paulb@328 | 9 | </head> |
paulb@328 | 10 | |
paulb@328 | 11 | <body> |
paulb@328 | 12 | <h1>Deploying a WebStack Application<br /> |
paulb@328 | 13 | </h1> |
paulb@328 | 14 | |
paulb@328 | 15 | <p>When deploying an application, it is possible to use a one-shot deploy |
paulb@328 | 16 | function for certain frameworks. The <code>deploy</code> function is called |
paulb@328 | 17 | as follows:</p> |
paulb@328 | 18 | <pre>deploy(resource) |
paulb@328 | 19 | deploy(resource, authenticator) # where authenticators are used</pre> |
paulb@328 | 20 | |
paulb@328 | 21 | <p>For some frameworks, an address may be specified:</p> |
paulb@328 | 22 | <pre>deploy(resource, address=(host_string, port_integer)) |
paulb@328 | 23 | deploy(resource, authenticator, address=(host_string, port_integer))</pre> |
paulb@328 | 24 | |
paulb@328 | 25 | <table border="1" cellpadding="5" cellspacing="0"> |
paulb@328 | 26 | <tbody> |
paulb@328 | 27 | <tr> |
paulb@328 | 28 | <th>Framework</th> |
paulb@328 | 29 | <th>Address Information</th> |
paulb@328 | 30 | </tr> |
paulb@328 | 31 | <tr> |
paulb@328 | 32 | <td>BaseHTTPRequestHandler</td> |
paulb@328 | 33 | <td>Supported</td> |
paulb@328 | 34 | </tr> |
paulb@328 | 35 | <tr> |
paulb@328 | 36 | <td>CGI</td> |
paulb@328 | 37 | <td>Ignored</td> |
paulb@328 | 38 | </tr> |
paulb@328 | 39 | <tr> |
paulb@328 | 40 | <td>Twisted</td> |
paulb@328 | 41 | <td>Supported (<code>host_string</code> is ignored)</td> |
paulb@328 | 42 | </tr> |
paulb@328 | 43 | <tr> |
paulb@328 | 44 | <td>WSGI</td> |
paulb@328 | 45 | <td>Ignored</td> |
paulb@328 | 46 | </tr> |
paulb@328 | 47 | </tbody> |
paulb@328 | 48 | </table> |
paulb@328 | 49 | |
paulb@328 | 50 | <p>The other frameworks do not support the deploy function due to the way |
paulb@328 | 51 | applications are typically integrated into the various server mechanisms:</p> |
paulb@328 | 52 | |
paulb@328 | 53 | <table border="1" cellpadding="5" cellspacing="0"> |
paulb@328 | 54 | <tbody> |
paulb@328 | 55 | <tr> |
paulb@328 | 56 | <th>Framework</th> |
paulb@328 | 57 | <th>Deployment Details</th> |
paulb@328 | 58 | </tr> |
paulb@328 | 59 | <tr> |
paulb@328 | 60 | <td>JavaServlet</td> |
paulb@328 | 61 | <td>Applications are packaged specially</td> |
paulb@328 | 62 | </tr> |
paulb@328 | 63 | <tr> |
paulb@328 | 64 | <td>ModPython</td> |
paulb@328 | 65 | <td>Applications must expose certain functions</td> |
paulb@328 | 66 | </tr> |
paulb@328 | 67 | <tr> |
paulb@328 | 68 | <td>Webware</td> |
paulb@328 | 69 | <td>Applications must expose certain classes</td> |
paulb@328 | 70 | </tr> |
paulb@328 | 71 | <tr> |
paulb@328 | 72 | <td>Zope</td> |
paulb@328 | 73 | <td>Applications must expose certain functions/classes</td> |
paulb@328 | 74 | </tr> |
paulb@328 | 75 | </tbody> |
paulb@328 | 76 | </table> |
paulb@328 | 77 | </body> |
paulb@328 | 78 | </html> |