Document installation in production
This commit is contained in:
parent
fd9618790a
commit
c8e450f377
3 changed files with 133 additions and 1 deletions
21
docs/uwsgi_photos.ini
Normal file
21
docs/uwsgi_photos.ini
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
[uwsgi]
|
||||
# www-data can write media
|
||||
uid = www-data
|
||||
gid = www-data
|
||||
# Django-related settings
|
||||
# the base directory (full path)
|
||||
chdir = /var/www/photos/photo21
|
||||
# the virtualenv (full path)
|
||||
home = /var/www/photos/photo21/venv
|
||||
wsgi-file = /var/www/photos/photo21/photo21/wsgi.py
|
||||
plugin = python3
|
||||
# process-related settings
|
||||
master = true
|
||||
# maximum number of worker processes
|
||||
processes = 10
|
||||
# the socket (use the full path to be safe
|
||||
socket = /var/www/photos/photos21/photos21.sock
|
||||
# ... with appropriate permissions - may be needed
|
||||
chmod-socket = 664
|
||||
# clear environment on exit
|
||||
vacuum = true
|
||||
Loading…
Add table
Add a link
Reference in a new issue