1 Star 0 Fork 0

open-c3/open-c3-federation

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
start.sh 605 Bytes
一键复制 编辑 原始数据 按行查看 历史
wupengcn301 提交于 2023-10-09 15:00 +08:00 . 启动服务时确保data目录存在
#!/usr/bin/env bash
if [[ ! -f "/data/open-c3-federation/.env" ]]; then
echo "APPLICATION_ENV=production" > /data/open-c3-federation/.env
echo "APP_NAME=app" >> /data/open-c3-federation/.env
fi
if [[ ! -f "/data/open-c3-federation/config.yaml" ]]; then
echo "错误: /data/open-c3-federation/config.yaml 文件不存在!"
exit 1
fi
PORT=$(grep "^port:" config.yaml | awk '{print $2}')
mkdir -p /data/open-c3-federation/data
docker run --restart=always -v /data/open-c3-federation/:/app/ \
-p "$PORT":"$PORT" -d --name open-c3-federation open-c3-federation:latest /app/entrypoint.sh
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/open-c3/open-c3-federation.git
git@gitee.com:open-c3/open-c3-federation.git
open-c3
open-c3-federation
open-c3-federation
main

搜索帮助