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>
This commit is contained in:
21
restart.sh
Executable file
21
restart.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
# CodiMD 重啟腳本
|
||||
|
||||
set -e
|
||||
|
||||
echo "🔄 重啟 CodiMD 服務..."
|
||||
|
||||
# 重啟服務
|
||||
docker-compose restart
|
||||
|
||||
echo ""
|
||||
echo "⏳ 等待服務完全啟動..."
|
||||
sleep 5
|
||||
|
||||
# 顯示服務狀態
|
||||
echo ""
|
||||
echo "📊 服務狀態:"
|
||||
docker-compose ps
|
||||
|
||||
echo ""
|
||||
echo "✅ CodiMD 已重啟"
|
||||
Reference in New Issue
Block a user