Added plugins manager

This commit is contained in:
Donald Zou
2025-08-13 21:41:28 +08:00
parent 2aa2b15234
commit 39d01015e5
4 changed files with 124 additions and 6 deletions

View File

@@ -7,6 +7,7 @@ date = datetime.today().strftime('%Y_%m_%d_%H_%M_%S')
def post_worker_init(worker):
dashboard.startThreads()
dashboard.DashboardPlugin.startThreads()
worker_class = 'gthread'
workers = 1
@@ -23,4 +24,4 @@ pythonpath = "., ./modules"
print(f"[Gunicorn] WGDashboard w/ Gunicorn will be running on {bind}", flush=True)
print(f"[Gunicorn] Access log file is at {accesslog}", flush=True)
print(f"[Gunicorn] Error log file is at {errorlog}", flush=True)
print(f"[Gunicorn] Error log file is at {errorlog}", flush=True)