Skip to content

Commit fe9a10a

Browse files
authored
Merge pull request #38 from apconw/dev
update readme
2 parents 19eb356 + 21fee0c commit fe9a10a

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

README.md

+15-6
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,21 @@
105105
106106
4. **数据初始化**
107107
```bash
108+
109+
# 安装依赖包
110+
pip install pymysql
111+
112+
# Mac or Linux 用户执行
113+
108114
cd docker
109115
./init.sh
110116

111-
或执行
117+
# Windows 用户执行
118+
119+
cd common
120+
python initialize_mysql.py
121+
112122

113-
cd docker
114-
python3 ../common/initialize_mysql.py
115123

116124
5. **访问服务**
117125
- 前端服务:http://localhost:8081
@@ -148,13 +156,14 @@
148156
4. **初始化数据库**
149157
- 如果使用本地环境mysql,初始化数据时需修改源码initialize_mysql,修改数据库连接信息即可
150158
```bash
159+
# Mac or Linux 用户执行
151160
cd docker
152161
./init.sh
153162
154-
或执行
163+
# Windows 用户执行
155164
156-
cd docker
157-
python3 ../common/initialize_mysql.py
165+
cd common
166+
python initialize_mysql.py
158167
159168
5. **前端依赖安装**
160169
- 前端是基于开源项目[可参考chatgpt-vue3-light-mvp安装](https://github.com/pdsuwwz/chatgpt-vue3-light-mvp)二开

0 commit comments

Comments
 (0)