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
|
from maxkb.const import CONFIG, PROJECT_DIR
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from apps.smartdoc import const
|
from apps.maxkb import const
|
||||||
|
|
||||||
__version__ = const.VERSION
|
__version__ = const.VERSION
|
||||||
except ImportError as e:
|
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 '
|
log_format = '%(h)s %(t)s %(L)ss "%(r)s" %(s)s %(b)s '
|
||||||
bind = f'{HTTP_HOST}:{HTTP_PORT}'
|
bind = f'{HTTP_HOST}:{HTTP_PORT}'
|
||||||
cmd = [
|
cmd = [
|
||||||
'gunicorn', 'smartdoc.wsgi:application',
|
'gunicorn', 'maxkb.wsgi:application',
|
||||||
'-b', bind,
|
'-b', bind,
|
||||||
'-k', 'gthread',
|
'-k', 'gthread',
|
||||||
'--threads', '200',
|
'--threads', '200',
|
||||||
|
|||||||
@ -27,7 +27,7 @@ class GunicornLocalModelService(BaseService):
|
|||||||
bind = f'{CONFIG.get("LOCAL_MODEL_HOST")}:{CONFIG.get("LOCAL_MODEL_PORT")}'
|
bind = f'{CONFIG.get("LOCAL_MODEL_HOST")}:{CONFIG.get("LOCAL_MODEL_PORT")}'
|
||||||
worker = CONFIG.get("LOCAL_MODEL_HOST_WORKER", 1)
|
worker = CONFIG.get("LOCAL_MODEL_HOST_WORKER", 1)
|
||||||
cmd = [
|
cmd = [
|
||||||
'gunicorn', 'smartdoc.wsgi:application',
|
'gunicorn', 'maxkb.wsgi:application',
|
||||||
'-b', bind,
|
'-b', bind,
|
||||||
'-k', 'gthread',
|
'-k', 'gthread',
|
||||||
'--threads', '200',
|
'--threads', '200',
|
||||||
|
|||||||
@ -50,7 +50,7 @@ openpyxl = "3.1.5"
|
|||||||
python-docx = "1.1.2"
|
python-docx = "1.1.2"
|
||||||
xlrd = "2.0.1"
|
xlrd = "2.0.1"
|
||||||
xlwt = "1.3.0"
|
xlwt = "1.3.0"
|
||||||
pymupdf = "1.26.1"
|
pymupdf = "1.24.9"
|
||||||
pypdf = "5.6.0"
|
pypdf = "5.6.0"
|
||||||
gunicorn = "23.0.0"
|
gunicorn = "23.0.0"
|
||||||
python-daemon = "3.1.2"
|
python-daemon = "3.1.2"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user