This commit is contained in:
xieshen 2020-10-19 17:10:53 +08:00
parent fdc6d8d9aa
commit 0990387643
2 changed files with 24 additions and 1 deletions

View File

@ -13,5 +13,4 @@ import sys
from django.core.wsgi import get_wsgi_application from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'spug_expand.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'spug_expand.settings')
sys.path.append("/var/www/p3/spug_expand")
application = get_wsgi_application() application = get_wsgi_application()

24
spug_expand_uwsgi.ini Normal file
View File

@ -0,0 +1,24 @@
# myweb_uwsgi.ini file
[uwsgi]
# Django-related settings
socket = :8081
# the base directory (full path)
chdir = /var/www/p3/spug_expand
# Django s wsgi file
module = spug_expand.wsgi
# process-related settings
# master
master = true
# maximum number of worker processes
processes = 4
# ... with appropriate permissions - may be needed
# chmod-socket = 664
# clear environment on exit
vacuum = true