Download:
child 32:cbe814edc59d
parent 30:0e84a4a22acd
31:65daf0ee01ec
Anton Shestakov <av6@dwimlabs.net>, Sun, 27 Sep 2020 18:59:01 +0800
gunicorn: add .py extension to the config file name

4 файлов изменено, 8 вставок(+), 8 удалений(-) [+]
roles/hgweb/tasks/appinstall.yml file | annotate | diff | comparison | revisions
roles/hgweb/templates/etc/supervisor/conf.d/hgweb.conf file | annotate | diff | comparison | revisions
roles/hgweb/templates/gunicorn.conf file | annotate | diff | comparison | revisions
roles/hgweb/templates/gunicorn.conf.py file | annotate | diff | comparison | revisions
--- a/roles/hgweb/tasks/appinstall.yml Sat Jun 09 15:14:44 2018 +0800
+++ b/roles/hgweb/tasks/appinstall.yml Sun Sep 27 18:59:01 2020 +0800
@@ -33,7 +33,7 @@
with_items:
- hgweb.py
- hgweb.conf
- - gunicorn.conf
+ - gunicorn.conf.py
notify:
- restart hgweb
--- a/roles/hgweb/templates/etc/supervisor/conf.d/hgweb.conf Sat Jun 09 15:14:44 2018 +0800
+++ b/roles/hgweb/templates/etc/supervisor/conf.d/hgweb.conf Sun Sep 27 18:59:01 2020 +0800
@@ -1,5 +1,5 @@
[program:hgweb]
-command = /home/{{ hgweb_user }}/hgwebfiles/venv/bin/gunicorn --config=/home/{{ hgweb_user }}/hgwebfiles/gunicorn.conf hgweb:application
+command = /home/{{ hgweb_user }}/hgwebfiles/venv/bin/gunicorn --config=/home/{{ hgweb_user }}/hgwebfiles/gunicorn.conf.py hgweb:application
directory = /home/{{ hgweb_user }}/hgwebfiles/
user = {{ hgweb_user }}
stopsignal = INT
--- a/roles/hgweb/templates/gunicorn.conf Sat Jun 09 15:14:44 2018 +0800
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-bind = 'unix:/home/{{ hgweb_user }}/hgwebfiles/socket'
-workers = {{ hgweb_workers }}
-worker_class = 'eventlet'
-accesslog = '-'
-errorlog = '-'
-timeout = 30 # set to bigger values for serving bigger repos
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/roles/hgweb/templates/gunicorn.conf.py Sun Sep 27 18:59:01 2020 +0800
@@ -0,0 +1,6 @@
+bind = 'unix:/home/{{ hgweb_user }}/hgwebfiles/socket'
+workers = {{ hgweb_workers }}
+worker_class = 'eventlet'
+accesslog = '-'
+errorlog = '-'
+timeout = 30 # set to bigger values for serving bigger repos