mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Fixed --pid option in deploy docs.
Thanks to Miguel Araujo for spotting it. Fixes #198
This commit is contained in:
parent
b9e710933b
commit
560a4895d8
@ -70,14 +70,16 @@ http {
|
||||
root /path/to/app/current/public;
|
||||
|
||||
location / {
|
||||
# checks for static file, if not found proxy to app
|
||||
try_files $uri @proxy_to_app;
|
||||
}
|
||||
|
||||
location @proxy_to_app {
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_redirect off;
|
||||
|
||||
if (!-f $request_filename) {
|
||||
proxy_pass http://app_server;
|
||||
break;
|
||||
}
|
||||
proxy_pass http://app_server;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /500.html;
|
||||
@ -152,7 +154,7 @@ APP=main:application
|
||||
if [ -f $PID ]; then rm $PID fi
|
||||
|
||||
cd $ROOT
|
||||
exec $GUNICORN -c $ROOT/gunicorn.conf.py --pidfile=$PID $APP
|
||||
exec $GUNICORN -c $ROOT/gunicorn.conf.py --pid=$PID $APP
|
||||
</pre>
|
||||
</div>
|
||||
<div class="section" id="supervisor">
|
||||
|
||||
@ -141,7 +141,7 @@ An `example service`_ definition::
|
||||
if [ -f $PID ]; then rm $PID fi
|
||||
|
||||
cd $ROOT
|
||||
exec $GUNICORN -c $ROOT/gunicorn.conf.py --pidfile=$PID $APP
|
||||
exec $GUNICORN -c $ROOT/gunicorn.conf.py --pid=$PID $APP
|
||||
|
||||
Supervisor
|
||||
++++++++++
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user