代码拉取完成,页面将自动刷新
#!/bin/bash
set -e -u -x
if [ ! -d _assets ]; then
## TODO: make sure asserts are up-to-date...
## Building Frontend part with cache in Docker
echo ""
echo "Building assets..."
echo ""
./build-assets.sh
echo ""
echo "Assets built!"
echo ""
fi
## Running dev server
# build kotlin-web-site container here
docker build --pull -t kotlin-web-site .
## Use the `kotlin-web-site` container name in PyCharm/IntelliJ IDEA to setup python interpreter
while true; do
echo ""
echo "Running Python web server..."
echo ""
docker run -it --rm \
-v $(pwd):/src \
-p 5000:5000 \
kotlin-web-site \
python /src/kotlin-website.py $@ || true
echo ""
echo "Python exited"
echo "Restarting..."
echo ""
sleep 5
done
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。