Skip to content

Commit

Permalink
chore: update server version
Browse files Browse the repository at this point in the history
  • Loading branch information
jameszyao authored and SimsonW committed Jan 29, 2024
1 parent 725b63b commit 2a85cef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self):
logger.info(f"Init Config")

# version
self.VERSION = "0.1.0"
self.VERSION = "0.1.1"
self.POSTGRES_SCHEMA_VERSION = 2

# mode
Expand Down
13 changes: 5 additions & 8 deletions backend/run_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# mode
export MODE=dev
#
export MODE=test
export PURPOSE=WEB

# service
Expand All @@ -17,14 +16,15 @@ export HTTP_PROXY_URL=http://127.0.0.1:7890
export TASKINGAI_INFERENCE_URL=http://127.0.0.1:8040

# secret
export AES_ENCRYPTION_KEY=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
export JWT_SECRET_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export AES_ENCRYPTION_KEY=7700b2f9c8dd982dfaddf8b47a92f1d900507ee8ac335f96a64e9ca0f018b195
export JWT_SECRET_KEY=020b7c80bfb2a944a19ffa054ee96039117ec7066b7b10263ac3ac22b4c985a0
export DEFAULT_ADMIN_USERNAME=admin
export DEFAULT_ADMIN_PASSWORD=passWord123

# log
export LOG_LEVEL=INFO

# test web service
set -e
gunicorn --bind 0.0.0.0:8010 \
--preload \
Expand All @@ -38,6 +38,7 @@ current_dir=$(pwd)
export PYTHONPATH=$PYTHONPATH:$current_dir
pytest tests/services_tests/

# test api service
export PURPOSE=API
export SERVICE_PORT=8020
export API_SERVICE_PORT=8020
Expand All @@ -53,7 +54,3 @@ pytest tests/services_tests/assistant/
pytest tests/services_tests/inference/
pytest tests/services_tests/retrieval/
pytest tests/services_tests/tool/




0 comments on commit 2a85cef

Please sign in to comment.