提交 587a05e5 编写于 作者: Y Yancey1989

reading source code with woboq

上级 929090ed
...@@ -166,3 +166,17 @@ docker tag myapp me/myapp ...@@ -166,3 +166,17 @@ docker tag myapp me/myapp
docker push docker push
kubectl ... kubectl ...
``` ```
### Reading source code with woboq codebrowser
If you are interesting of PaddlePaddle source code, [Woboq codebrowser](https://github.com/woboq/woboq_codebrowser) is a suitable tool.
- Build PaddlePaddle source code to be static files
```bash
docker run -v $PWD:/paddle -v $HOME/nginx_data:/usr/share/nginx/html/data -v $HOME/nginx_data/paddle:/usr/share/nginx/html/paddle -e "WITH_GPU=OFF" -e "WITH_AVX=ON" -e "WITH_TEST=OFF" -e "RUN_TEST=OFF" -e "BUILD_WOBOQ=ON" paddle:dev
```
- Open the generated static files in a browser, or upload these files to your web server. You can run nginx server as the following command, and then hit "http://<hostip>:8080/paddle" in browser.
```
docker run -v $HOME/nginx_data:/usr/share/nginx/html -d -p 8080:80 nginx
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册