Skip to content

Commit

Permalink
Yologen improvements for deployment (#2253)
Browse files Browse the repository at this point in the history
  • Loading branch information
tituspijean authored Apr 23, 2024
1 parent 1ad97d5 commit 957db51
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
File renamed without changes.
14 changes: 14 additions & 0 deletions tools/app_generator/gunicorn.py
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions tools/app_generator/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ pycparser==2.21
visitor==0.1.3
Werkzeug==3.0.1
WTForms==3.0.1
gunicorn==22.0.0

0 comments on commit 957db51

Please sign in to comment.