From bc5849dbfcdf4b098ef895ded4e1d3eb5fe7e0c3 2023-04-20 10:23:14 From: Ben Sturmfels Date: 2023-04-20 10:23:14 Subject: [PATCH] Remove use of directory under /run Seems to get remove after reboot. --- diff --git a/deploy/nginx.conf b/deploy/nginx.conf index 4149cac745d84ee07d6b7671e03994d754b5cdaf..8076702ef06b2311696086631f4af012410dbd47 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 997453c59591fa214691f8f4bf646048e267d776..d503377b948cc176668e4bb05cf6cb6c38de131c 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