Skip to content

Commit

Permalink
bugfix: 修复docs中本地部署文档中收集前端静态资源部分未生效 TencentBlueKing#42 (TencentBlueKi…
Browse files Browse the repository at this point in the history
  • Loading branch information
pagezz-canway committed Apr 9, 2019
1 parent f3b67f8 commit b2cc67d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions docs/install/dev_deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ npm run build -- --STATIC_ENV=dev
python manage.py collectstatic --noinput
```

前端资源文件需要单独拷贝收集,执行如下命令
```bash
rm -rf static/dev static/images
mv pipeline/blueflow/static/dev static/
mv pipeline/blueflow/static/images static/
```


## 配置本地 hosts
windows: 在 C:\Windows\System32\drivers\etc\host 文件中添加“127.0.0.1 dev.{BK_PAAS_HOST}”。
Expand Down
6 changes: 4 additions & 2 deletions docs/install/dev_web.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ npm run build -- --SITE_URL="/o/bk_sops" --STATIC_ENV="open/prod"
```

## 收集静态资源
前端打包后,需要在工程目录下运行如下命令自动收集静态资源到 static 下。
前端打包后,需要在工程目录下运行如下命令收集静态资源到 static 下。
```bash
python manage.py collectstatic --noinput
rm -rf static/open static/images
mv pipeline/blueflow/static/open static/
mv pipeline/blueflow/static/images static/
```

0 comments on commit b2cc67d

Please sign in to comment.