-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathmayblog_uwsgi.ini
More file actions
30 lines (27 loc) · 994 Bytes
/
mayblog_uwsgi.ini
File metadata and controls
30 lines (27 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# mysite_uwsgi.ini file
[uwsgi]
# Django-related settings
# the base directory (full path)
chdir = /usr/src/app
# Django's wsgi file
module = blog.wsgi:application
# the virtualenv (full path)
# home = /vagrant/mayblog/venv
# process-related settings
# master
master = true
# maximum number of worker processes
processes = 10
# the socket (use the full path to be safe
socket = /tmp/mayblog.sock
# ... with appropriate permissions - may be needed
chmod-socket = 666
# clear environment on exit
vacuum = true
# pythonpath = /usr/bin/python
# env = DJANGO_SETTINGS_MODULE=blog.settings.dev # set an environment variable
# pidfile = /tmp/mayblog-master.pid # create a pidfile
# harakiri = 20 # respawn processes taking more than 20 seconds
# limit-as = 128 # limit the project to 128 MB
# max-requests = 5000 # respawn processes after serving 5000 requests
# daemonize = /var/log/uwsgi/mayblog.log # background the process & log