1 Star 2 Fork 263

bxqtee / crawlab

forked from tikazyq / crawlab 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker_init.sh 461 Bytes
一键复制 编辑 原始数据 按行查看 历史
Marvin Zhang 提交于 2019-08-07 13:05 . updated Jenkinsfile
#!/bin/sh
# replace default api path to new one
if [ "${CRAWLAB_API_ADDRESS}" = "" ];
then
:
else
jspath=`ls /app/dist/js/app.*.js`
sed -i "s?localhost:8000?${CRAWLAB_API_ADDRESS}?g" ${jspath}
fi
# replace base url
if [ "${CRAWLAB_BASE_URL}" = "" ];
then
:
else
indexpath=/app/dist/index.html
sed -i "s?/js/?${CRAWLAB_BASE_URL}/js/?g" ${indexpath}
sed -i "s?/css/?${CRAWLAB_BASE_URL}/css/?g" ${indexpath}
fi
# start nginx
service nginx start
crawlab
Go
1
https://gitee.com/bxqtee/crawlab.git
git@gitee.com:bxqtee/crawlab.git
bxqtee
crawlab
crawlab
master

搜索帮助