* Cleanup in deploy configs

This commit is contained in:
Phil Zhitnikov 2024-03-19 00:14:07 +04:00
parent 2ed7205f88
commit b888da0863
2 changed files with 10 additions and 8 deletions

View File

@ -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;

View File

@ -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