From bc5849dbfcdf4b098ef895ded4e1d3eb5fe7e0c3 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Thu, 20 Apr 2023 20:23:14 +1000 Subject: [PATCH] Remove use of directory under /run Seems to get remove after reboot. --- deploy/nginx.conf | 2 +- deploy/uwsgi.ini | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/nginx.conf b/deploy/nginx.conf index 4149cac7..8076702e 100644 --- a/deploy/nginx.conf +++ b/deploy/nginx.conf @@ -1,6 +1,6 @@ upstream {{ site_name }}_django_wsgi { keepalive 2; # Cache 2 connections. - server unix:/run/symposion/{{ site_name }}_uwsgi.sock; + server unix:/run/{{ site_name }}_uwsgi.sock; } server { diff --git a/deploy/uwsgi.ini b/deploy/uwsgi.ini index 997453c5..d503377b 100644 --- a/deploy/uwsgi.ini +++ b/deploy/uwsgi.ini @@ -5,7 +5,7 @@ chdir = {{ project_dir }} home = {{ virtualenv }} module = pinaxcon.wsgi master = true -socket = /run/symposion/{{ site_name }}_uwsgi.sock +socket = /run/{{ site_name }}_uwsgi.sock processes = 3 # Reduced this again now that reports are deferred to a queued task. Could # potentially be further reduced. @@ -18,7 +18,7 @@ log-prefix = {{ site_name }} # Enable uWSGI stats server for use with uwsgitop. # Run with: `sudo -u www-data uwsgitop /run/{{ site_name }}/django_uwsgi_stats.socket` -stats = /run/{{ site_name }}/django_uwsgi_stats.socket +stats = /run/{{ site_name }}_uwsgi_stats.socket # Memory reporting is useful for reviewing memory consumption with uwsgitop, but # makes the logs a little noiser. # memory-report = true