From 0d2f11365423b2bec7adca0ba2893a96745f3751 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 4 Mar 2015 12:25:17 +0100 Subject: [PATCH] uwsgi auto reload --- examples/deploy/start_app.sh | 2 +- examples/sandbox/settings.py | 1 + examples/sandbox/wsgi.py | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/deploy/start_app.sh b/examples/deploy/start_app.sh index 1b243db..82124d0 100644 --- a/examples/deploy/start_app.sh +++ b/examples/deploy/start_app.sh @@ -2,4 +2,4 @@ python /opt/TimeSide/examples/sandbox/manage.py syncdb --noinput python /opt/TimeSide/examples/sandbox/manage.py migrate --noinput python /opt/TimeSide/examples/sandbox/manage.py collectstatic --noinput -uwsgi --socket :8000 --wsgi-file /opt/TimeSide/examples/sandbox/wsgi.py --chdir /opt/TimeSide/examples/sandbox/ --master --processes 4 --threads 2 \ No newline at end of file +uwsgi --socket :8000 --wsgi-file /opt/TimeSide/examples/sandbox/wsgi.py --chdir /opt/TimeSide/examples/sandbox/ --master --processes 4 --threads 2 --py-autoreload 3 \ No newline at end of file diff --git a/examples/sandbox/settings.py b/examples/sandbox/settings.py index 78c2e4d..e2d8c70 100644 --- a/examples/sandbox/settings.py +++ b/examples/sandbox/settings.py @@ -167,3 +167,4 @@ LOGGING = { REST_FRAMEWORK = { } + diff --git a/examples/sandbox/wsgi.py b/examples/sandbox/wsgi.py index 2be7975..0843f7c 100644 --- a/examples/sandbox/wsgi.py +++ b/examples/sandbox/wsgi.py @@ -28,4 +28,3 @@ matplotlib.use('Agg') # setting points here. import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() - -- 2.39.5