提交 cd22462c 编写于 作者: Q Qiao Longfei 提交者: GitHub

update document (#50)

上级 f6dc1208
...@@ -2,21 +2,32 @@ ...@@ -2,21 +2,32 @@
### How to use ### How to use
#### Step 1: build and install Python package #### Step 1: build frontend
```shell ```shell
python setup.py bdist_wheel cd frontend
cd dist npm install
pip install visualdl-0.0.1-py2-none-any.whl npm run build
``` ```
#### Step 2: build frontend this step will generate a dist directory under frontend
### Step 2: copy frontend/dist to server/visualdl/frontend/dist
```shell ```shell
cd visualdl/frontend cp -r frontend/dist server/visualdl/frontend/
npm install
npm run build
``` ```
#### Step 3: build and install Python package
```shell
cd server/visualdl
python setup.py bdist_wheel
cd dist
pip install --upgrade visualdl-0.0.1-py2-none-any.whl
```
### Step 3: run ### Step 3: run
``` ```
python bin/visual_dl.py --port=8888 # cd to visualdl install dir
cd /usr/local/lib/python2.7/site-packages/visualdl/
python visual_dl.py --port=8888
``` ```
...@@ -27,6 +27,7 @@ def option_parser(): ...@@ -27,6 +27,7 @@ def option_parser():
parser.add_option( parser.add_option(
"-p", "-p",
"--port", "--port",
type=int,
default=8040, default=8040,
action="store", action="store",
dest="port", dest="port",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册