mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
118 lines
4.6 KiB
HTML
118 lines
4.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.14.0 / 2012-02-27</h3>
|
|
<ul>
|
|
<li>check if Request line is too large: You can now pass the
|
|
parameter <code>--limit-request-line</code> or set the
|
|
<code>limit_request_line</code> in your configuration file to set the max
|
|
size of the request line in bytes.</li>
|
|
<li>limit the number of headers fields and their size. Add
|
|
<code>--limit-request-fieldsw</code> and
|
|
<code>limit-request-field-size</code> settings</li>
|
|
<li>add <code>p</code> variable to the log access format to log
|
|
pidfile</li>
|
|
<li>add <code>{HeaderName}o</code> variable to the logo access format to
|
|
log the response header HeaderName</li>
|
|
<li>request header is now logged with the variable
|
|
<code>{HeaderName}i</code> in the access log file</lI>
|
|
<li>improve error logging</li>
|
|
<li>support logging.configFile</li>
|
|
<li><strong>support django 1.4</strong> in both
|
|
<code>gunicorn_django</code> & <code>run_gunicorn</code> command</li>
|
|
<li>improve reload in django run_gunicorn command (should just
|
|
work now)</li>
|
|
<li>allows people to set the <code>X-Forwarded-For</code> header key and
|
|
disable it by setting an empty string.</li>
|
|
<li>fix support of Tornado</li>
|
|
<li>many <a
|
|
href="https://github.com/benoitc/gunicorn/compare/0.13.4...0.14.0">other
|
|
fixes.</a></li></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>
|