未验证 提交 13cc8198 编写于 作者: J Jeff Wang 提交者: GitHub

Fix python path typo in the start dev server script (#253)

* Fix python path typo in the start dev server script
Kill webpack in case of python error.

* Switch to use trap

* capture more signal.
上级 1ac2bf6c
......@@ -21,4 +21,4 @@ cd build
cmake ..
make -j $processors
export PYTHON_PATH=$PYTHON_PATH:"$SCRIPT_DIR/.."
export PYTHONPATH=$PYTHONPATH:"$SCRIPT_DIR/.."
......@@ -6,9 +6,19 @@ CURRENT_DIR=`pwd`
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $SCRIPT_DIR/../frontend
export PYTHONPATH=$PYTHONPATH:"$SCRIPT_DIR/.."
./node_modules/.bin/webpack --watch --config tool/webpack.dev.config.js --output-path=../visualdl/server/dist &
# Track webpack pid
WEBPACKPID=$!
function finish {
kill -9 $WEBPACKPID
}
export PYTHON_PATH=$PYTHON_PATH:"$SCRIPT_DIR/.."
trap finish EXIT HUP INT QUIT PIPE TERM
cd $CURRENT_DIR
#Run the visualDL with local PATH
python ${SCRIPT_DIR}/../visualdl/server/visualDL "$@"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册