Files
codimd/logs.sh
Timmy 9ea9eb4b61 feat: add comprehensive management scripts for CodiMD
Add 9 management scripts to simplify CodiMD operations:
- start.sh: Start services with automatic .env setup
- stop.sh: Stop all services gracefully
- restart.sh: Restart all services
- logs.sh: View real-time logs for any service
- status.sh: Check service status and resource usage
- backup.sh: Backup database, uploads, and environment
- restore.sh: Restore from backups with interactive selection
- update.sh: Update Docker images with automatic backup
- cleanup.sh: Clean unused Docker resources

Add SCRIPTS.md with comprehensive usage documentation and examples.

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2026-03-17 17:41:10 +08:00

10 lines
173 B
Bash
Executable File

#!/bin/bash
# CodiMD 日誌查看腳本
SERVICE=${1:-codimd}
echo "📋 顯示 $SERVICE 服務日誌(按 Ctrl+C 離開)..."
echo ""
docker-compose logs -f "$SERVICE"