Ai
2 Star 0 Fork 0

mirrors_vlsi/kotlin-web-site

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build-devserver.sh 831 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_vlsi/kotlin-web-site.git
git@gitee.com:mirrors_vlsi/kotlin-web-site.git
mirrors_vlsi
kotlin-web-site
kotlin-web-site
master

搜索帮助