mirror of https://github.com/veops/cmdb.git
Update README.md
如果是非本机访问, 要修改ui/.env里VUE_APP_API_BASE_URL里的IP地址
This commit is contained in:
parent
f05aec3d16
commit
d9a2cff82a
|
@ -45,7 +45,6 @@ cp api/settings.py.example api/settings.py
|
|||
- 安装库
|
||||
- 后端: ```pipenv run pipenv install```
|
||||
- 前端: ```cd ui && yarn install && cd ..```
|
||||
- 如果是非本机访问, 要修改ui/.env里VUE_APP_API_BASE_URL里的IP地址
|
||||
|
||||
- 创建数据库表 ```pipenv run flask db-setup```
|
||||
- 可以将docs/cmdb.sql导入到数据库里,登录用户和密码都是:admin
|
||||
|
@ -53,5 +52,7 @@ cp api/settings.py.example api/settings.py
|
|||
- 启动服务
|
||||
- 后端: ```pipenv run flask run```
|
||||
- 前端: ```cd ui && yarn run serve```
|
||||
|
||||
- 浏览器打开: [http://127.0.0.1:8000](http://127.0.0.1:8000)
|
||||
- 如果是非本机访问, 要修改ui/.env里VUE_APP_API_BASE_URL里的IP地址
|
||||
|
||||
|
|
Loading…
Reference in New Issue