32 lines
998 B
Text
32 lines
998 B
Text
![]() |
[uwsgi]
|
||
|
die-on-term = true
|
||
|
enable-threads = true
|
||
|
http = :$(PORT)
|
||
|
|
||
|
# full path to Django project's root directory
|
||
|
chdir = {hd}/saleor/
|
||
|
# Django's wsgi file
|
||
|
module = saleor.wsgi:application
|
||
|
# full path to python virtual env
|
||
|
home = {hd}/env/saleor
|
||
|
# enable uwsgi master process
|
||
|
master = true
|
||
|
# maximum number of worker processes
|
||
|
processes = 4
|
||
|
# the socket (use the full path to be safe
|
||
|
socket = {hd}/saleor/saleor.sock
|
||
|
# socket permissions
|
||
|
chmod-socket = 666
|
||
|
# clear environment on exit
|
||
|
vacuum = true
|
||
|
# daemonize uwsgi and write messages into given log
|
||
|
daemonize = {hd}/uwsgi-emperor.log
|
||
|
|
||
|
log-format = UWSGI uwsgi "%(method) %(uri) %(proto)" %(status) %(size) %(msecs)ms [PID:%(pid):Worker-%(wid)] [RSS:%(rssM)MB]
|
||
|
max-requests = 100
|
||
|
memory-report = true
|
||
|
static-map = /static=/app/static
|
||
|
mimefile = /etc/mime.types
|
||
|
ignore-sigpipe = true
|
||
|
ignore-write-errors = true
|
||
|
disable-write-exception = true
|