Files
Anthias/run_gunicorn.py
2025-01-14 06:47:52 -08:00

21 lines
425 B
Python

from gunicorn.app.base import Application
from anthias_django import wsgi
from settings import LISTEN, PORT
class GunicornApplication(Application):
def init(self, parser, opts, args):
return {
'bind': f'{LISTEN}:{PORT}',
'threads': 2,
'timeout': 20,
}
def load(self):
return wsgi.application
if __name__ == '__main__':
GunicornApplication().run()