updated the gunicorn conf files

This commit is contained in:
ronny abraham 2023-07-17 10:23:41 +03:00
parent 9b73b9653d
commit fe2090d8e9
5 changed files with 33 additions and 8 deletions

View file

@ -6,8 +6,12 @@ raw_env = ["DJANGO_SETTINGS_MODULE={{settings_module}}"]
worker_tmp_dir = "/tmp"
user = '{{user}}'
group = '{{group}}'
#
# uncomment only if supervisor does not set these!
# see https://stackoverflow.com/questions/53570850/djangogunicorn-operation-not-permitted
# user = '{{user}}'
# group = '{{group}}'
access_logfile = \
'{{logging_access}}'

View file

@ -6,8 +6,12 @@ raw_env = ["DJANGO_SETTINGS_MODULE={{settings_module}}"]
worker_tmp_dir = "/tmp"
user = '{{user}}'
group = '{{group}}'
#
# uncomment only if supervisor does not already set these!
# see https://stackoverflow.com/questions/53570850/djangogunicorn-operation-not-permitted
# user = '{{user}}'
# group = '{{group}}'
access_logfile = \
'{{logging_access}}'

View file

@ -6,8 +6,12 @@ raw_env = ["DJANGO_SETTINGS_MODULE={{settings_module}}"]
worker_tmp_dir = "/tmp"
user = '{{user}}'
group = '{{group}}'
#
# uncomment only if supervisor does not set these!
# see https://stackoverflow.com/questions/53570850/djangogunicorn-operation-not-permitted
# user = '{{user}}'
# group = '{{group}}'
access_logfile = \
'{{logging_access}}'

View file

@ -6,8 +6,12 @@ raw_env = ["DJANGO_SETTINGS_MODULE={{settings_module}}"]
worker_tmp_dir = "/tmp"
user = '{{user}}'
group = '{{group}}'
#
# uncomment only if supervisor does not already set these!
# see https://stackoverflow.com/questions/53570850/djangogunicorn-operation-not-permitted
# user = '{{user}}'
# group = '{{group}}'
access_logfile = \
'{{logging_access}}'

View file

@ -0,0 +1,9 @@
## important gunicorn error
https://stackoverflow.com/questions/53570850/djangogunicorn-operation-not-permitted;
the problem is that if supervisor sets both user and group, and then gunicvorn does it, you can
get a blow up.
so comment it out in one conf or the other