From 9d05b2e1c21dcf05be69922426ed824301f6ba62 Mon Sep 17 00:00:00 2001 From: phzhik Date: Tue, 19 Mar 2024 00:14:07 +0400 Subject: [PATCH] * Cleanup in deploy configs --- _deploy/nginx.conf | 2 +- _deploy/uwsgi.ini | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/_deploy/nginx.conf b/_deploy/nginx.conf index 619e469..d561bae 100644 --- a/_deploy/nginx.conf +++ b/_deploy/nginx.conf @@ -9,7 +9,7 @@ server { } server { - set $APP_HOME /var/www/phzhik-poizonstore; + set $APP_HOME /var/www/poizonstore; listen 443 ssl; server_name crm-poizonstore.ru; diff --git a/_deploy/uwsgi.ini b/_deploy/uwsgi.ini index 40f323c..69f46cb 100644 --- a/_deploy/uwsgi.ini +++ b/_deploy/uwsgi.ini @@ -1,14 +1,16 @@ [uwsgi] +project = poizonstore + uid = poizon gid = poizon # Django-related settings # the base directory (full path) -chdir = /var/www/phzhik-poizonstore/ +chdir = /var/www/%(project)/ # Django's wsgi file -module = poizonstore:application +module = %(project):application # the virtualenv (full path) -virtualenv = /var/www/phzhik-poizonstore/env +virtualenv = /var/www/%(project)/env # process-related settings # master @@ -16,11 +18,11 @@ master = true # maximum number of worker processes processes = 10 # the socket (use the full path to be safe -#socket = /var/www/phzhik-poizonstore/mysite.sock +#socket = /var/www/%(project)/mysite.sock socket = :8001 -wsgi-file = /var/www/phzhik-poizonstore/poizonstore/wsgi.py -pidfile = /tmp/uwsgi.pid -stats = /tmp/uwsgi.stats.sock +wsgi-file = /var/www/%(project)/poizonstore/wsgi.py +pidfile = /tmp/uwsgi/%(project).pid +stats = /tmp/uwsgi/uwsgi.stats.sock # ... with appropriate permissions - may be needed chmod-socket = 664 # clear environment on exit