forked from benoitc/gunicorn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
185 lines (173 loc) · 7.67 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Gunicorn - Python WSGI HTTP Server for UNIX</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="shortcut icon" href="images/favicon.png" type="image/x-icon">
<link rel="alternate"
href="https://github.com/benoitc/gunicorn/commits/master.atom"
type="application/atom+xml" title="Gunicorn commits">
</head>
<body>
<div class="logo-wrapper">
<div class="logo-div">
<div class="latest">
Latest version: <strong><a
href="https://docs.gunicorn.org/en/stable/">20.0.4</a></strong>
</div>
<div class="logo"><img src="images/logo.jpg" ></div>
</div>
</div>
<div class="banner-wrapper">
<div class="banner">
<div class="title"><img src="images/title.png"></div>
<h1>Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX. It's a pre-fork worker model. The Gunicorn server is broadly compatible with various web frameworks, simply implemented, light on server resources, and fairly speedy.</h1>
<div class="banner-button">
<a href="https://github.com/benoitc/gunicorn" title="View source at github" class="greenbutton">View source</a>
<a href="http://pypi.python.org/pypi/gunicorn/" title="Download from PyPi" class="redbutton">Download</a>
</div>
</div>
</div>
<div class="mid-wrapper">
<div class="tabs">
<ul class="tab-bar">
<li class="active">
<a href="#quickstart" title="Quickstart" class="gabout">
<h2>Quickstart</h2>
<p>Read the quickstart guide to get started using Gunicorn.</p>
</a>
</li>
<li class="withborder">
<a href="#deployment" title="Deployment" class="gdownloads">
<h2>Deployment</h2>
<p>Learn how to deploy the Gunicorn server.</p>
</a>
</li>
<li class="withborder">
<a href="#community" title="Community" class="gcommunity">
<h2>Community</h2>
<p>Get in touch with the community.</p>
</a>
</li>
<li class="withborder">
<a href="#docs" title="Documentation" class="gdocuments">
<h2>Documentation</h2>
<p>Read the documentation to learn more about Gunicorn.</p>
</a>
</li>
</ul>
<div class="clearall active"></div>
<div class="tab-box active" data-tab="quickstart">
<h1>Installation</h1>
<p>
Here's a quick rundown on how to get started with Gunicorn. For more details read the <a href="http://docs.gunicorn.org/en/stable/">documentation</a>.
</p>
<pre>
$ pip install gunicorn
$ cat myapp.py
def app(environ, start_response):
data = b"Hello, World!\n"
start_response("200 OK", [
("Content-Type", "text/plain"),
("Content-Length", str(len(data)))
])
return iter([data])
$ gunicorn -w 4 myapp:app
[2014-09-10 10:22:28 +0000] [30869] [INFO] Listening at: http://127.0.0.1:8000 (30869)
[2014-09-10 10:22:28 +0000] [30869] [INFO] Using worker: sync
[2014-09-10 10:22:28 +0000] [30874] [INFO] Booting worker with pid: 30874
[2014-09-10 10:22:28 +0000] [30875] [INFO] Booting worker with pid: 30875
[2014-09-10 10:22:28 +0000] [30876] [INFO] Booting worker with pid: 30876
[2014-09-10 10:22:28 +0000] [30877] [INFO] Booting worker with pid: 30877
</pre>
</div>
<div class="tab-box" data-tab="deployment">
<h1>Deployment</h1>
<p>
Gunicorn is a WSGI HTTP server. It is best to use Gunicorn behind an HTTP proxy server. We strongly advise you to use <a href="http://www.nginx.org/">nginx</a>.
</p>
<p>Here's an example to help you get started with using nginx:</p>
<pre>
server {
listen 80;
server_name example.org;
access_log /var/log/nginx/example.log;
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
</pre>
<p>Nginx is set up as reverse proxy server to a Gunicorn server running on localhost port 8000.</p>
<p>Read the full documentation at <a
href="http://docs.gunicorn.org/en/latest/deploy.html">docs.gunicorn.org</a></p>
</div>
<div class="tab-box" data-tab="community">
<h1>Project Management</h1>
<p><strong>Gunicorn</strong> uses <a href="https://github.com/benoitc/gunicorn/projects">GitHub for the project management</a>. GitHub issues are used for 3 different purposes:</p>
<ul>
<li><a href="https://github.com/benoitc/gunicorn/projects/2">Bug tracker</a></li>
<li><a href="https://github.com/benoitc/gunicorn/projects/4">Forum</a></li>
<li><a href="https://github.com/benoitc/gunicorn/projects/3">Mailing list</a>
</ul>
<p>Project maintenance guidelines are avaible on the <a href="https://github.com/benoitc/gunicorn/wiki/Project-management">wiki</a></p>
<h1>Irc</h1>
<p>The Gunicorn channel is on the <a href="http://freenode.net/">Freenode</a> IRC
network. You can chat with the community on the <a href="http://webchat.freenode.net/?channels=gunicorn">#gunicorn channel</a>.</p>
<h1>Issue Tracking</h1>
<p>Bug reports, enhancement requests and tasks generally go in the <a href="http://github.com/benoitc/gunicorn/issues">Github
issue tracker</a>.</p>
<h1>Security Issues</h1>
<p>The security mailing list is a place to report security issues. Only
developers are subscribed to it. To post a message to the list use the
address <a href="mailto:security@gunicorn.org">security@gunicorn.org</a></p>
</div>
<div class="tab-box" data-tab="docs">
<h1>Documentation</h1>
<p>You can read more comprehensive documentation at <a href="http://docs.gunicorn.org">docs.gunicorn.org</a>.</p>
<p>The contents are:</p>
<ul>
<li><a href="http://docs.gunicorn.org/en/latest/install.html">Installation</a></li>
<li><a
href="http://docs.gunicorn.org/en/latest/run.html">Running
Gunicorn</a></li>
<li><a
href="http://docs.gunicorn.org/en/latest/configure.html">Configuration
Overview</a></li>
<li><a href="http://docs.gunicorn.org/en/latest/deploy.html">Deploying Gunicorn</a></li>
<li><a href="http://docs.gunicorn.org/en/latest/design.html">Design</a></li>
<li><a href="http://docs.gunicorn.org/en/latest/faq.html">FAQ</a></li>
<li><a href="http://docs.gunicorn.org/en/latest/news.html">Changelog</a></li>
</div>
</div>
</div>
<!-- <div class="user-wrapper">
<div class="users">
<div class="left-details">
<h3>Who is using</h3>
<h2>Gunicorn</h2>
</div>
<div class="company-logos">
<a href="#"><img src="images/user1.jpg"></a>
<a href="#"><img src="images/user1.jpg"></a>
<a href="#"><img src="images/user1.jpg"></a>
<a href="#"><img src="images/user1.jpg"></a>
<a href="#"><img src="images/user1.jpg"></a>
<a href="#"><img src="images/user1.jpg"></a>
</div>
<div class="clearall"></div>
</div>
</div> -->
<div class="footer">
<div class="footer-wp">
This open sourced site is hosted on GitHub. <br>
<a href="http://github.com/benoitc/gunicorn/issues">Patches, suggestions, and comments are welcome.</a>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>