mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
106 lines
4.0 KiB
HTML
106 lines
4.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>Green Unicorn - Welcome</title>
|
|
<link rel="alternate" type="application/rss+xml" href="/feed.xml" />
|
|
<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="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.0 - 2010-12-22</h3>
|
|
<ul>
|
|
<li>Add support for logging configuration using a ini file.</li>
|
|
<li>Add IPV6 support</li>
|
|
<li>Add multidomain application example</li>
|
|
<li>Improve graceful handling: don't kill old workers
|
|
until new ones are active</li>
|
|
<li>Improve gunicorn_django command when importing settings
|
|
module using <code>DJANGO_SETTINGS_MODULE</code> environment variable</li>
|
|
<li>Send appropriate error status on http parsing</li>
|
|
<li>Fix pidfile, set permissions so other user can read it and use it</li>
|
|
<li>Fix temporary file leaking</li>
|
|
<li>Fix setpgrp issue, can now be launched via ubuntu
|
|
upstart</li>
|
|
<li>Set the number of workers to zero on WINCH</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>
|