Some checks failed
CD Pipeline / deploy (push) Failing after 59s
- 建立 Gitea Actions CD pipeline (.gitea/workflows/cd.yaml) - 部署模式: rsync Python 檔案至 188 → docker restart (volume mount) - Dockerfile/requirements 變動時自動重建 Docker image - 部署通知: Telegram (開始/成功/失敗) - 健康檢查: https://mo.wooo.work/health (最多 5 次重試) - 同步最新 CLAUDE.md / ADR-008 / memory (2026-04-19) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
23 lines
668 B
Bash
23 lines
668 B
Bash
#!/bin/bash
|
||
# 禁用維護模式腳本
|
||
|
||
echo "=========================================="
|
||
echo "禁用維護模式"
|
||
echo "=========================================="
|
||
|
||
# 恢復正常 Nginx 配置
|
||
echo "1. 恢復正常 Nginx 配置..."
|
||
sudo ln -sf /etc/nginx/sites-available/momo /etc/nginx/sites-enabled/momo
|
||
|
||
# 測試並重載 Nginx
|
||
echo "2. 重載 Nginx..."
|
||
sudo nginx -t && sudo systemctl reload nginx
|
||
|
||
echo ""
|
||
echo "=========================================="
|
||
echo "✅ 維護模式已禁用"
|
||
echo "=========================================="
|
||
echo "網址:https://mo.wooo.work"
|
||
echo "網站已恢復正常服務"
|
||
echo "=========================================="
|