恢复代理构建和配置仓库克隆,简化一次性容器部署

This commit is contained in:
2026-11-01 22:41:35 +08:00
parent ccaffa4cf6
commit a531c33e54
8 changed files with 120 additions and 48 deletions
+6 -3
View File
@@ -1,4 +1,7 @@
#!/bin/bash
cd $(dirname $(readlink -f "$0"))
git fetch origin && git reset --hard origin/master && git pull
#!/usr/bin/env bash
set -euo pipefail
cd -- "$(dirname -- "$(readlink -f -- "$0")")"
# 保留启动时更新;pull 遇到冲突报错,不强制丢弃本地改动。
http_proxy= https_proxy= HTTP_PROXY= HTTPS_PROXY= git pull --ff-only
mkdir -p ../state/{home,tmp,logs}
docker compose up -d