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

update document (#50)

上级 f6dc1208
......@@ -2,21 +2,32 @@
### How to use
#### Step 1: build and install Python package
#### Step 1: build frontend
```shell
python setup.py bdist_wheel
cd dist
pip install visualdl-0.0.1-py2-none-any.whl
cd frontend
npm install
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
cd visualdl/frontend
npm install
npm run build
cp -r frontend/dist server/visualdl/frontend/
```
#### 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
```
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():
parser.add_option(
"-p",
"--port",
type=int,
default=8040,
action="store",
dest="port",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册