reading source code with woboq

release/0.10.0
Yancey1989 8 years ago
parent 929090ed22
commit 587a05e5e0

@ -166,3 +166,17 @@ docker tag myapp me/myapp
docker push
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
```

Loading…
Cancel
Save