Skip to content

Commit 306315c

Browse files
authored
修改了README中指导信息 (#407)
* README增加更详细的指引
1 parent cbfe129 commit 306315c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ app-engine:
139139

140140
**启动命令**
141141

142+
在框架输出目录的 `bin` 目录下执行启动命令
143+
142144
```
143145
fit start -Dfit.profiles.active=prod
144146
```
@@ -159,7 +161,7 @@ fit start -Dfit.profiles.active=prod
159161
160162
**修改 ELSA 依赖地址**
161163
162-
进入目录 `app-engine\frontend` ,搜索 `package.json` 文件的 ELSA 依赖地址:
164+
进入目录 `app-platform/frontend` ,搜索 `package.json` 文件的 ELSA 依赖地址:
163165
164166
```
165167
"dependencies": {
@@ -171,12 +173,12 @@ fit start -Dfit.profiles.active=prod
171173
172174
**修改代理文件**
173175
174-
修改 `AppPlatform/frontend` 目录下的 `proxy.config.json` 文件,可以修改需要访问的后端地址。如本地后端地址是 `http://127.0.0.1:8080` 。可以按照如下示例配置:
176+
修改 `app-platform/frontend` 目录下的 `proxy.config.json` 文件,可以修改需要访问的后端地址。如本地后端地址是 `http://127.0.0.1:8080` 。可以按照如下示例配置:
175177
176178
```json
177179
{
178180
"/api": {
179-
"target": "http://127.0.0.1:5520",
181+
"target": "http://127.0.0.1:8080",
180182
"secure": false,
181183
"changeOrigin": true,
182184
"pathRewrite": {
@@ -189,14 +191,16 @@ fit start -Dfit.profiles.active=prod
189191
**依赖安装**
190192

191193
```
192-
cd app-engine/frontend/
194+
cd app-platform/frontend/
193195
npm install
194196
```
195197

196198
**打包构建**
197199

200+
`package.json` 中定义了多种打包脚本,这里以 `build:single` 为例:
201+
198202
```
199-
npm run build
203+
npm run build:single
200204
```
201205

202206
**启动命令**

0 commit comments

Comments
 (0)