fix: ENOENT download error for archive-only converters (PDFMathTranslate/MinerU)
- Add existsSync checks in download.tsx before file access - Fix normalizeFiletype.ts: md-t/md-i return original format (not tar.gz) - Add outputMode: 'archive' support in main.ts with auto .tar suffix - PDFMathTranslate outputs translated-<lang>.pdf + bilingual-<lang>.pdf (no original) - MinerU outputs complete folder in .tar with logging - Hide preview icon for .tar files in results.tsx - Update Bun version: 1.2.2 -> 1.3.6 - Add Step 19: auto-deploy to remote server after Docker push All 159 tests pass.
This commit is contained in:
parent
1f800c3619
commit
912546aaa7
10 changed files with 190 additions and 63 deletions
45
.github/workflows/docker-build-remote.yml
vendored
45
.github/workflows/docker-build-remote.yml
vendored
|
|
@ -691,3 +691,48 @@ jobs:
|
|||
generate_release_notes: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# ========================================
|
||||
# Step 19: 更新遠端 ConvertX-CN 服務
|
||||
# 說明:拉取最新映像並重新啟動服務(所有步驟完成後執行)
|
||||
# ========================================
|
||||
- name: 🔄 更新遠端 ConvertX-CN 服務
|
||||
run: |
|
||||
echo "========================================"
|
||||
echo "🔄 更新遠端 ConvertX-CN 服務"
|
||||
echo "========================================"
|
||||
|
||||
tailscale ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} << 'REMOTE_EOF'
|
||||
set -e
|
||||
|
||||
# 1. 進入專案資料夾
|
||||
cd /home/bioailab/miniconda3/lid/app/convertx-cn
|
||||
|
||||
# 2. 停止服務
|
||||
echo "📋 停止服務..."
|
||||
docker compose down
|
||||
|
||||
# 3. 拉取最新映像檔
|
||||
echo ""
|
||||
echo "📋 拉取最新映像檔..."
|
||||
docker compose pull
|
||||
|
||||
# 4. 重新啟動
|
||||
echo ""
|
||||
echo "📋 重新啟動服務..."
|
||||
docker compose up -d
|
||||
|
||||
# 5. 顯示服務狀態與 log
|
||||
echo ""
|
||||
echo "📋 服務狀態:"
|
||||
docker compose ps
|
||||
|
||||
echo ""
|
||||
echo "📋 服務 log(最近 100 行):"
|
||||
docker logs convertx-cn --tail=100
|
||||
|
||||
echo ""
|
||||
echo "✅ ConvertX-CN 服務已更新完成"
|
||||
REMOTE_EOF
|
||||
|
||||
echo "========================================"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue