From e8bf8123b0796c77e20d0e05c4713a63f1b053d1 Mon Sep 17 00:00:00 2001 From: hukdoesn Date: Tue, 15 Jul 2025 16:21:03 +0800 Subject: [PATCH] 1 --- backend/backend/settings.py | 4 ++-- backend/conf/config.txt | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/backend/backend/settings.py b/backend/backend/settings.py index 69ac827..89519d4 100644 --- a/backend/backend/settings.py +++ b/backend/backend/settings.py @@ -194,6 +194,6 @@ STATIC_URL = 'static/' DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' # 构建相关配置 -BUILD_ROOT = Path('/Users/huk/Downloads/data') # 修改为指定目录 -# BUILD_ROOT = Path('/data') +# BUILD_ROOT = Path('/Users/huk/Downloads/data') # 修改为指定目录 +BUILD_ROOT = Path('/data') BUILD_ROOT.mkdir(exist_ok=True, parents=True) # 确保目录存在,包括父目录 \ No newline at end of file diff --git a/backend/conf/config.txt b/backend/conf/config.txt index 166d1f2..85930ca 100644 --- a/backend/conf/config.txt +++ b/backend/conf/config.txt @@ -1,9 +1,10 @@ [client] -host = 127.0.0.1 +#host = 127.0.0.1 #host = mysql -#host = liteops-mysql +host = liteops-mysql port = 3306 -database = liteops_dev +#database = liteops_dev +database = liteops user = root password = 1234567xx default-character-set = utf8mb4 \ No newline at end of file