* 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 { server {
set $APP_HOME /var/www/phzhik-poizonstore; set $APP_HOME /var/www/poizonstore;
listen 443 ssl; listen 443 ssl;
server_name crm-poizonstore.ru; server_name crm-poizonstore.ru;

View File

@ -1,14 +1,16 @@
[uwsgi] [uwsgi]
project = poizonstore
uid = poizon uid = poizon
gid = poizon gid = poizon
# Django-related settings # Django-related settings
# the base directory (full path) # the base directory (full path)
chdir = /var/www/phzhik-poizonstore/ chdir = /var/www/%(project)/
# Django's wsgi file # Django's wsgi file
module = poizonstore:application module = %(project):application
# the virtualenv (full path) # the virtualenv (full path)
virtualenv = /var/www/phzhik-poizonstore/env virtualenv = /var/www/%(project)/env
# process-related settings # process-related settings
# master # master
@ -16,11 +18,11 @@ master = true
# maximum number of worker processes # maximum number of worker processes
processes = 10 processes = 10
# the socket (use the full path to be safe # the socket (use the full path to be safe
#socket = /var/www/phzhik-poizonstore/mysite.sock #socket = /var/www/%(project)/mysite.sock
socket = :8001 socket = :8001
wsgi-file = /var/www/phzhik-poizonstore/poizonstore/wsgi.py wsgi-file = /var/www/%(project)/poizonstore/wsgi.py
pidfile = /tmp/uwsgi.pid pidfile = /tmp/uwsgi/%(project).pid
stats = /tmp/uwsgi.stats.sock stats = /tmp/uwsgi/uwsgi.stats.sock
# ... with appropriate permissions - may be needed # ... with appropriate permissions - may be needed
chmod-socket = 664 chmod-socket = 664
# clear environment on exit # clear environment on exit