Fixed --pid option in deploy docs.

Thanks to Miguel Araujo for spotting it.

Fixes #198
This commit is contained in:
Paul J. Davis 2011-04-19 11:15:01 -04:00
parent b9e710933b
commit 560a4895d8
2 changed files with 8 additions and 6 deletions

View File

@ -70,14 +70,16 @@ http {
root /path/to/app/current/public; root /path/to/app/current/public;
location / { 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 X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_redirect off; proxy_redirect off;
if (!-f $request_filename) { proxy_pass http://app_server;
proxy_pass http://app_server;
break;
}
} }
error_page 500 502 503 504 /500.html; error_page 500 502 503 504 /500.html;
@ -152,7 +154,7 @@ APP=main:application
if [ -f $PID ]; then rm $PID fi if [ -f $PID ]; then rm $PID fi
cd $ROOT cd $ROOT
exec $GUNICORN -c $ROOT/gunicorn.conf.py --pidfile=$PID $APP exec $GUNICORN -c $ROOT/gunicorn.conf.py --pid=$PID $APP
</pre> </pre>
</div> </div>
<div class="section" id="supervisor"> <div class="section" id="supervisor">

View File

@ -141,7 +141,7 @@ An `example service`_ definition::
if [ -f $PID ]; then rm $PID fi if [ -f $PID ]; then rm $PID fi
cd $ROOT cd $ROOT
exec $GUNICORN -c $ROOT/gunicorn.conf.py --pidfile=$PID $APP exec $GUNICORN -c $ROOT/gunicorn.conf.py --pid=$PID $APP
Supervisor Supervisor
++++++++++ ++++++++++