mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
feat: add compilation and installation scripts for MaxKB project
This commit is contained in:
parent
a76c561769
commit
43087e7ca3
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue