dev 배포: Mongo 인증 URI, SSH 호스트 exdev.co.kr, post-receive docker compose 경로 수정, chatbotApp UI 반영

This commit is contained in:
Macbook
2026-11-04 01:48:54 +09:00
parent 12ad9e993c
commit 8577b1f881
5 changed files with 26 additions and 5 deletions
+12
View File
@@ -13,6 +13,18 @@ DEPLOY_LOG="${DEPLOY_LOG:-/Volumes/ADATA/logs/deploy/exAichatbot_agent.log}"
LOG_TAG="[exAichatbot_agent-deploy]"
export PATH="/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/Applications/Docker.app/Contents/Resources/bin:${PATH:-/usr/bin:/bin}"
# Gitea post-receive 환경은 HOME 이 달라 ~/.docker/cli-plugins(docker compose)를 못 찾는다 → aidev 설정으로 고정
if ! docker compose version >/dev/null 2>&1; then
for _dc in "/Users/aidev/.docker" "${HOME:-}/.docker"; do
if [[ -x "${_dc}/cli-plugins/docker-compose" ]]; then export DOCKER_CONFIG="${_dc}"; break; fi
done
if ! docker compose version >/dev/null 2>&1 && [[ -d /Applications/Docker.app/Contents/Resources/cli-plugins ]]; then
_tmpdc="$(mktemp -d)"; mkdir -p "${_tmpdc}/cli-plugins"
ln -sf /Applications/Docker.app/Contents/Resources/cli-plugins/docker-compose "${_tmpdc}/cli-plugins/docker-compose"
[[ -f /Users/aidev/.docker/config.json ]] && cp /Users/aidev/.docker/config.json "${_tmpdc}/config.json" 2>/dev/null
export DOCKER_CONFIG="${_tmpdc}"
fi
fi
mkdir -p "$(dirname "$DEPLOY_LOG")"
exec >> "$DEPLOY_LOG" 2>&1