File tree Expand file tree Collapse file tree 3 files changed +7
-36
lines changed Expand file tree Collapse file tree 3 files changed +7
-36
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,11 @@ ID 作为主键的默认声明方式=={.note}
49
49
2 . 更新所有 ` id_key ` 导入为 ` snowflake_id_key `
50
50
3 . 执行 ` backend/sql/init_snowflake_test_data.sql ` 脚本初始化测试数据
51
51
52
- ::: caution Windows 平台警告
53
- 如果您正在 Windows 平台中使用 mysql >= 8.0,还需要更新 ` backend/database/db.py ` 文件内的 ` mysql+asyncmy ` 为
54
- ` mysql+aiomysql ` ,否则,您将无法在本地正常新增数据。相关
55
- issue:[ asyncmy/issues/35] ( https://github.com/long2ice/asyncmy/issues/35 )
56
- :::
52
+ ::: caution Windows 平台警告
53
+ 如果您正在 Windows 平台中使用 mysql >= 8.0,还需要更新 ` backend/database/db.py ` 文件内的 ` mysql+asyncmy ` 为
54
+ ` mysql+aiomysql ` ,否则,您将无法在本地正常新增数据。相关
55
+ issue:[ asyncmy/issues/35] ( https://github.com/long2ice/asyncmy/issues/35 )
56
+ :::
57
57
58
58
## 注意事项
59
59
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ fba 仅适用于资深 Python 后端开发人员,如果您是非资深用户
102
102
```
103
103
:::
104
104
105
- 9 . 启动 celery worker, beat 和 flower <Badge type =" warning " text =" 此步骤为可选,三个都可以不执行 " />
105
+ 9 . 启动 celery worker, beat 和 flower <Badge type =" warning " text =" 此步骤为可选,可直接跳过 " />
106
106
107
107
在 ` backend ` 目录打开终端,执行以下命令启动 celery 相关服务
108
108
@@ -133,35 +133,6 @@ fba 仅适用于资深 Python 后端开发人员,如果您是非资深用户
133
133
```shell:no-line-numbers
134
134
fba run
135
135
```
136
-
137
- :::: details 附加说明
138
- 此项目默认使用 CLI 启动服务,为了方便 Debug,你可以在 IDE 中直接右键运行 `run.py` 文件
139
-
140
- 需要注意的是,为了实现插件 0 耦合,插件依赖未使用 uv 进行管理。Debug 前请务必使用 `fba run` 命令启动一次服务,
141
- 以便自动安装插件依赖
142
-
143
- 你也可以选择执行 `backend/scripts/init_plugin.py` 文件手动安装插件依赖
144
-
145
- ::: warning ModuleNotFoundError: No module named 'backend'
146
-
147
- 1. 自行搜索:将源根到添加到 PYTHONPATH
148
- 2. 执行以下命令:
149
-
150
- Linux/Mac:
151
-
152
- ```sh
153
- # 修改 /path/to/fba 为本地 fba 项目根路径
154
- export PYTHONPATH=$PYTHONPATH:/path/to/fba
155
- ```
156
-
157
- Windows(cmd):
158
-
159
- ```sh
160
- # 修改 D:\path\to\fba 为本地 fba 项目根路径
161
- set PYTHONPATH=%PYTHONPATH%;D:\path\to\fba
162
- ```
163
-
164
- :::
165
136
::::
166
137
167
138
11. 初始化测试数据
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ title: 插件安装
14
14
1 . 获取插件仓库源码并下载
15
15
2 . 将下载的源码文件夹直接拷贝到 ` backend/plugin ` 目录下
16
16
3 . 根据插件说明(README.md)进行相关配置
17
- 4 . 通过 CLI 重启服务
17
+ 4 . 重启服务
18
18
19
19
@tab ZIP
20
20
You can’t perform that action at this time.
0 commit comments