gunicorn/doc/htdocs/index.html
2011-04-23 11:04:32 +02:00

100 lines
3.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Green Unicorn - Welcome</title>
<link rel="stylesheet" href="css/index.css" type="text/css" media="screen" />
</head>
<body>
<div id="container" class="landing">
<div id="menu">
<ul>
<li><a href="install.html">Install</a></li>
<li><a href="run.html">Run</a></li>
<li><a href="configure.html">Configure</a></li>
<li><a href="deploy.html">Deploy</a></li>
<li><a href="design.html">Design</a></li>
<li><a href="faq.html">FAQ</a></li>
<li><a href="news.html">News</a></li>
<li><a href="community.html">Community</a></li>
<li><a href="http://github.com/benoitc/gunicorn/">Code</a></li>
<li><a href="http://github.com/benoitc/gunicorn/issues">Issues</a></li>
</ul>
</div>
<div id="header">
<img src="images/large_gunicorn.png" alt="Gunicorn - Green Unicorn" />
</div>
<div id="tutorial">
<h3>Quick Start</h3>
<pre>
$ sudo easy_install virtualenv
$ mkdir ~/environments/
$ virtualenv ~/environments/tutorial/
$ cd ~/environments/tutorial/
$ ls
bin include lib
$ source bin/activate
(tutorial) $ ./bin/easy_install gunicorn
(tutorial) $ mkdir myapp
(tutorial) $ cd myapp/
(tutorial) $ vi myapp.py
(tutorial) $ cat myapp.py
def app(environ, start_response):
data = "Hello, World!\n"
start_response("200 OK", [
("Content-Type", "text/plain"),
("Content-Length", str(len(data)))
])
return iter([data])
(tutorial) $ ../bin/gunicorn -w 4 myapp:app
2010-06-05 23:27:07 [16800] [INFO] Arbiter booted
2010-06-05 23:27:07 [16800] [INFO] Listening at: http://127.0.0.1:8000
2010-06-05 23:27:07 [16801] [INFO] Worker spawned (pid: 16801)
2010-06-05 23:27:07 [16802] [INFO] Worker spawned (pid: 16802)
2010-06-05 23:27:07 [16803] [INFO] Worker spawned (pid: 16803)
2010-06-05 23:27:07 [16804] [INFO] Worker spawned (pid: 16804)
</pre>
</div>
<div class="blurb">
<h3>About</h3>
<p>
Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX. It's
a pre-fork worker model ported from Ruby's
<a href="http://unicorn.bogomips.org/">Unicorn</a> project. The
Gunicorn server is broadly compatible with various web frameworks,
simply implemented, light on server resources, and fairly speedy.
</p>
</div>
<div class="blurb">
<h3>Features</h3>
<ul>
<li>Natively supports WSGI, Django, and Paster</li>
<li>Automatic worker process management</li>
<li>Simple Python configuration</li>
<li>Multiple worker configurations</li>
<li>Various server hooks for extensibility</li>
<li>Compatible with Python 2.x >= 2.5</li>
</ul>
</div>
<div class="blurb">
<h3>Version 0.12.1 - 2011-03-23</h3>
<ul>
<li>Add "on_starting" hook. This hook can be used to set
anything before the arbiter really start</li>
<li>Support bdist_rpm in setup</li>
<li>Improve content-length handling (pep 3333)</li>
<li>Improve Django support</li>
<li>Fix daemonizing (#142)</li>
<li>Fix ipv6 handling</li>
</ul>
</div>
<div id="footer">
<p>Site Content License <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License</a>.</p>
<p>Hosted on <a href="http://github.com/">GitHub</a></p>
</div>
</div>
</body>
</html>