Skip to content

Commit

Permalink
docs: local install (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
pycook authored Nov 16, 2023
1 parent 3b73971 commit 21d4454
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/local.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cp cmdb-api/settings.example.py cmdb-api/settings.py
- 后端: `cd cmdb-api && pipenv run pipenv install && cd ..`
- 前端: `cd cmdb-ui && yarn install && cd ..`
- 可以将 docs/cmdb.sql 导入到数据库里,登录用户和密码分别是:demo/123456
- 创建数据库表: 进入**cmdb-api**目录执行 `pipenv run flask db-setup && pipenv run flask cmdb-init-cache`
- 创建数据库表: 进入**cmdb-api**目录执行 `pipenv run flask db-setup && pipenv run flask common-check-new-columns && pipenv run flask cmdb-init-cache`
- 启动服务

- 后端: 进入**cmdb-api**目录执行 `pipenv run flask run -h 0.0.0.0`
Expand Down
2 changes: 1 addition & 1 deletion docs/local_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
- frontend: `cd cmdb-ui && yarn install && cd ..`
- Suggest step: (default: user:demo,password:123456)
- Create tables of cmdb database:
in **cmdb-api** directory: `pipenv run flask db-setup && pipenv run flask cmdb-init-cache`
in **cmdb-api** directory: `pipenv run flask db-setup && pipenv run flask common-check-new-columns && pipenv run flask cmdb-init-cache`

` source docs/cmdb.sql`

Expand Down

0 comments on commit 21d4454

Please sign in to comment.