Files
syskiller e0cd349f58 Discourse 한국어 번역과 Gitea 배포 구성 완료
일반 화면과 관리자 화면 및 활성 플러그인의 최종 한국어 번역을 반영했다.

기능별 검수 원본과 보드 화면 패치 원본을 저장소에 포함했다. yarn test와 yarn deploy 및 yarn verify:deployment 명령을 추가했다.

활성 플러그인 29개의 번역 키 6,005개에서 누락 0개를 확인했다. PC와 390픽셀 모바일 화면을 확인했다. 운영 app 컨테이너에 재배포하고 HTTP 200 응답을 확인했다.

데이터베이스 구조 변경과 데이터 이전은 없다. 사용자 요청이 없어 백업은 만들지 않았다.
2026-09-27 03:28:42 +00:00

29 lines
1003 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
root_dir="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
container="${DISCOURSE_CONTAINER:-app}"
plugin_path="/var/www/discourse/plugins/itosm-admin-korean"
cd "$root_dir"
corepack yarn test
docker inspect "$container" >/dev/null
docker exec "$container" mkdir -p "$plugin_path/config/locales" "$plugin_path/assets"
docker cp plugin.rb "$container:$plugin_path/plugin.rb"
docker cp config/locales/client.ko.yml "$container:$plugin_path/config/locales/client.ko.yml"
docker cp config/locales/server.ko.yml "$container:$plugin_path/config/locales/server.ko.yml"
docker cp assets/. "$container:$plugin_path/assets/"
docker restart "$container" >/dev/null
for attempt in 1 2 3 4 5 6 7 8 9 10; do
if DISCOURSE_CONTAINER="$container" bash scripts/verify_deployment.sh; then
echo "Discourse 한국어 보완 배포 완료"
exit 0
fi
sleep 2
done
echo "컨테이너 재시작 뒤 서비스가 정상 상태로 돌아오지 않았습니다." >&2
exit 1