1 Star 0 Fork 0

薛定谔的毛/flow-web

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
start_caddy.sh 440 Bytes
一键复制 编辑 原始数据 按行查看 历史
gy2006 提交于 2020-08-11 16:03 . update caddy image
#!/bin/sh
# Used as default CMD in docker
# change server url
for entry in ${SOURCE_DIR}/js/*.js
do
sed -e "s#\"http://replace:me\"#\"${FLOWCI_SERVER_URL}\"#g" "${entry}" > "${entry}".replaced
done
# copy to caddy work folder
cp -r ${SOURCE_DIR}/. ${CADDY_DIR}
# write back to .js from .js.replaced
for entry in ${CADDY_DIR}/js/*.replaced
do
name=${entry%.replaced}
mv ${entry} ${name}
done
caddy run -config /etc/caddy/Caddyfile
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiongxiaoyu/flow-web.git
git@gitee.com:xiongxiaoyu/flow-web.git
xiongxiaoyu
flow-web
flow-web
master

搜索帮助