部署:本地开发环境切换

This commit is contained in:
xiao12feng8 2026-02-05 15:03:40 +08:00
parent 389d291397
commit 0c9fb211d1
5 changed files with 9 additions and 9 deletions

2
.env
View File

@ -7,7 +7,7 @@ DEBUG=True
BACKEND_URL=http://127.0.0.1:8000 BACKEND_URL=http://127.0.0.1:8000
# ===== 数据库配置 ===== # ===== 数据库配置 =====
DATABASE_URL=mysql+pymysql://root:root@127.0.0.1:3306/fastadmin?charset=utf8mb4 DATABASE_URL=mysql+pymysql://fastadmin:root@1.15.149.240:3306/fastadmin?charset=utf8mb4
# ===== 用户信息接口 (PHP后端) ===== # ===== 用户信息接口 (PHP后端) =====
# PHP 后端地址,用于用户认证 # PHP 后端地址,用于用户认证

View File

@ -1,2 +1,2 @@
DATABASE_URL=mysql+pymysql://root:root@127.0.0.1:3306/lover?charset=utf8mb4 DATABASE_URL=mysql+pymysql://fastadmin:root@1.15.149.240:3306/fastadmin?charset=utf8mb4
USER_INFO_API=http://192.168.1.164:30100/api/user_basic/get_user_basic USER_INFO_API=http://1.15.149.240:30100/api/user_basic/get_user_basic

View File

@ -1,8 +1,8 @@
// Windows 本地开发 - 混合架构 // Windows 本地开发 - 混合架构
// export const baseURL = 'http://192.168.1.164:30100' // PHP 处理用户管理和界面 export const baseURL = 'http://192.168.1.164:30100' // PHP 处理用户管理和界面
export const baseURL = 'http://1.15.149.240:30100' // PHP 处理用户管理和界面 // export const baseURL = 'http://1.15.149.240:30100' // PHP 处理用户管理和界面
// export const baseURLPy = 'http://192.168.1.164:30101' // FastAPI 处理 AI 功能 export const baseURLPy = 'http://192.168.1.164:30101' // FastAPI 处理 AI 功能
export const baseURLPy = 'http://1.15.149.240:30101' // FastAPI 处理 AI 功能 // export const baseURLPy = 'http://1.15.149.240:30101' // FastAPI 处理 AI 功能
// 远程服务器 - 需要时取消注释 // 远程服务器 - 需要时取消注释
// export const baseURL = 'http://1.15.149.240:30100' // export const baseURL = 'http://1.15.149.240:30100'

View File

@ -3,9 +3,9 @@ app_trace = false
[database] [database]
type = mysql type = mysql
hostname = 127.0.0.1 hostname = 1.15.149.240
database = fastadmin database = fastadmin
username = root username = fastadmin
password = root password = root
hostport = 3306 hostport = 3306
charset = utf8mb4 charset = utf8mb4