File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ git clone https://github.com/wuhan2020/wuhan2020
9
9
pip install -r requirements.txt
10
10
bash bootstrap
11
11
```
12
- 然后就可以在` http://your-ip:9000/wuhan2020/ ` 调试api
12
+ 然后就可以在` http://your-ip:5000/wuhan2020/[list_path] ` 调试api
13
+ 注意` list_path ` 是在` utils.py ` 中被` data.route ` 注册的path
13
14
## 项目文件说明
14
15
15
16
```
@@ -46,8 +47,8 @@ app.register_blueprint(data, url_prefix=path_prefix)
46
47
# 使用flask蓝图功能来注册http-router
47
48
48
49
if __name__ == ' __main__' :
49
- port = os.environ.get( " FC_SERVER_PORT " , " 9000 " )
50
- app.run(host = ' 0.0.0.0 ' , port = int (port) )
50
+ # 使用默认端口5000
51
+ app.run()
51
52
```
52
53
## 前端项目issues
53
54
https://github.com/wuhan2020/front-pages/issues
Original file line number Diff line number Diff line change 7
7
path_prefix = "/wuhan2020"
8
8
# url请求前缀,在http路径中要加/wuhan2020/
9
9
app .register_blueprint (data , url_prefix = path_prefix )
10
- #使用flask蓝图功能来注册http-router
10
+ # 使用flask蓝图功能来注册http-router
11
11
12
12
13
13
def handler (environ , start_response ):
14
14
return app (environ , start_response )
15
15
16
16
if __name__ == '__main__' :
17
+ # 使用默认端口5000
17
18
app .run ()
Original file line number Diff line number Diff line change 17
17
else :
18
18
from index import app
19
19
path_home = os .path .join (app .root_path ,"wuhan2020" )
20
+ print (path_home )
20
21
# wuhan2020文件夹为https://github.com/wuhan2020/wuhan2020项目文件的本地clone
21
22
# 阿里云serverless使用挂载nas远程目录来存放缓存文件;在本机调试时,缓存文件夹将存放在项目根目录
22
23
You can’t perform that action at this time.
0 commit comments