feat: Add deploy system
This commit is contained in:
25
gunicorn.conf.py
Normal file
25
gunicorn.conf.py
Normal 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'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user