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