feat: Add deploy system

This commit is contained in:
2026-01-16 15:27:07 -05:00
parent edd715b444
commit 80a8314b55
14 changed files with 402111 additions and 1 deletions

25
gunicorn.conf.py Normal file
View File

@@ -0,0 +1,25 @@
import os
wsgi_app = 'trytond.application:app'
bind = '0.0.0.0:8000'
# Number of worker processes
workers = (8 * os.cpu_count()) + 1
# Worker class
worker_class = "sync" # or "gevent" for I/O-bound tasks
# Timeout for requests
timeout= 500
# Preload application
preload_app = True
# Keep-alive
keepalive = 5
raw_env = [
'TRYTOND_CONFIG=%s' % os.environ.get('TRYTOND_CONFIG', ''),
'TRYTOND_DATABASE_URI=%s' % os.environ.get('TRYTOND_DATABASE_URI', ''),
'PYTHONOPTIMIZE=%s' % os.environ.get('PYTHONOPTIMIZE'),
]