10000 Fixed --pid option in deploy docs. · alex-python/gunicorn@560a489 · GitHub
[go: up one dir, main page]

Skip to content

Commit 560a489

Browse files
committed
Fixed --pid option in deploy docs.
Thanks to Miguel Araujo for spotting it. Fixes benoitc#198
1 parent b9e7109 commit 560a489

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

doc/htdocs/deploy.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,16 @@ <h2><a class="toc-backref" href="#contents">Nginx Configuration</a></h2>
7070
root /path/to/app/current/public;
7171

7272
location / {
73+
# checks for static file, if not found proxy to app
74+
try_files $uri &#64;proxy_to_app;
75+
}
76+
77+
location &#64;proxy_to_app {
7378
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
7479
proxy_set_header Host $http_host;
7580
proxy_redirect off;
7681

77-
if (!-f $request_filename) {
78-
proxy_pass http://app_server;
79-
break;
80-
}
82+
proxy_pass http://app_server;
8183
}
8284

8385
error_page 500 502 503 504 /500.html;
@@ -152,7 +154,7 @@ <h3><a class="toc-backref" href="#contents">Runit</a></h3>
152154
if [ -f $PID ]; then rm $PID fi
153155

154156
cd $ROOT
155-
exec $GUNICORN -c $ROOT/gunicorn.conf.py --pidfile=$PID $APP
157+
exec $GUNICORN -c $ROOT/gunicorn.conf.py --pid=$PID $APP
156158
</pre>
157159
</div>
158160
<div class="section" id="supervisor">

doc/site/deploy.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ An `example service`_ definition::
141141
if [ -f $PID ]; then rm $PID fi
142142
143143
cd $ROOT
144-
exec $GUNICORN -c $ROOT/gunicorn.conf.py --pidfile=$PID $APP
144+
exec $GUNICORN -c $ROOT/gunicorn.conf.py --pid=$PID $APP
145145

146146
Supervisor
147147
++++++++++

0 commit comments

Comments
 (0)
0