feat: add compilation and installation scripts for MaxKB project

This commit is contained in:
CaptainB 2025-06-13 16:45:47 +08:00
parent a76c561769
commit 43087e7ca3
4 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ import sys
from maxkb.const import CONFIG, PROJECT_DIR
try:
from apps.smartdoc import const
from apps.maxkb import const
__version__ = const.VERSION
except ImportError as e:

View File

@ -17,7 +17,7 @@ class GunicornService(BaseService):
log_format = '%(h)s %(t)s %(L)ss "%(r)s" %(s)s %(b)s '
bind = f'{HTTP_HOST}:{HTTP_PORT}'
cmd = [
'gunicorn', 'smartdoc.wsgi:application',
'gunicorn', 'maxkb.wsgi:application',
'-b', bind,
'-k', 'gthread',
'--threads', '200',

View File

@ -27,7 +27,7 @@ class GunicornLocalModelService(BaseService):
bind = f'{CONFIG.get("LOCAL_MODEL_HOST")}:{CONFIG.get("LOCAL_MODEL_PORT")}'
worker = CONFIG.get("LOCAL_MODEL_HOST_WORKER", 1)
cmd = [
'gunicorn', 'smartdoc.wsgi:application',
'gunicorn', 'maxkb.wsgi:application',
'-b', bind,
'-k', 'gthread',
'--threads', '200',

View File

@ -50,7 +50,7 @@ openpyxl = "3.1.5"
python-docx = "1.1.2"
xlrd = "2.0.1"
xlwt = "1.3.0"
pymupdf = "1.26.1"
pymupdf = "1.24.9"
pypdf = "5.6.0"
gunicorn = "23.0.0"
python-daemon = "3.1.2"