mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
Yologen improvements for deployment (#2253)
This commit is contained in:
parent
1ad97d5704
commit
957db5114b
3 changed files with 15 additions and 0 deletions
14
tools/app_generator/gunicorn.py
Normal file
14
tools/app_generator/gunicorn.py
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
import os
|
||||||
|
|
||||||
|
install_dir = os.path.dirname(__file__)
|
||||||
|
command = f"{install_dir}/venv/bin/gunicorn"
|
||||||
|
pythonpath = install_dir
|
||||||
|
workers = 4
|
||||||
|
user = "appgenerator"
|
||||||
|
bind = f"unix:{install_dir}/sock"
|
||||||
|
pid = "/run/gunicorn/appgenerator-pid"
|
||||||
|
errorlog = "/var/log/appgenerator/error.log"
|
||||||
|
accesslog = "/var/log/appgenerator/access.log"
|
||||||
|
access_log_format = '%({X-Real-IP}i)s %({X-Forwarded-For}i)s %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"'
|
||||||
|
loglevel = "warning"
|
||||||
|
capture_output = True
|
|
@ -16,3 +16,4 @@ pycparser==2.21
|
||||||
visitor==0.1.3
|
visitor==0.1.3
|
||||||
Werkzeug==3.0.1
|
Werkzeug==3.0.1
|
||||||
WTForms==3.0.1
|
WTForms==3.0.1
|
||||||
|
gunicorn==22.0.0
|
||||||
|
|
Loading…
Add table
Reference in a new issue