Bug: added gunicorn config file
This commit is contained in:
11
gunicorn_config.py
Normal file
11
gunicorn_config.py
Normal file
@@ -0,0 +1,11 @@
|
||||
def on_starting(server):
|
||||
"""Called just before the master process is initialized"""
|
||||
print("Gunicorn starting...")
|
||||
|
||||
def post_fork(server, worker):
|
||||
"""Called just after a worker has been forked"""
|
||||
from module_manager import get_module_manager
|
||||
from app import app
|
||||
|
||||
module_manager = get_module_manager()
|
||||
module_manager.load_active_modules(app)
|
||||
Reference in New Issue
Block a user