Files
smartsoltech_site/bin/demo.sh
Andrey K. Choi 8f1e0459fc 🔧 Restructure scripts and add CLI tool
 New features:
- Add CLI tool for container command execution
- Reorganize all scripts into bin/ directory
- Create convenient wrappers in project root
- Add local changes auto-commit functionality
- Enhanced backup repository management

📁 Structure changes:
- Move all scripts to bin/ directory
- Create wrapper scripts in root (cli, update, start, stop, logs)
- Add setup-backup.sh for backup repository management
- Update documentation with new CLI examples

🛠️ CLI capabilities:
- Django commands (shell, migrate, collectstatic, etc.)
- System commands (bash, logs, status)
- Container management (restart, status)
- Interactive and non-interactive modes

📚 Documentation:
- Updated SCRIPTS_README.md with CLI examples
- Added troubleshooting section
- Comprehensive usage examples
2025-11-25 06:51:52 +09:00

45 lines
1.7 KiB
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# =============================================================================
# SmartSolTech - Пример использования скриптов обновления
# =============================================================================
echo "🚀 Демонстрация скриптов управления SmartSolTech"
echo "=============================================="
echo ""
echo "📋 Доступные удаленные репозитории:"
git remote -v
echo ""
echo "📊 Текущий статус проекта:"
./update.sh --status
echo ""
echo "💡 Примеры команд обновления:"
echo ""
echo " # Стандартное обновление из основного репозитория"
echo " ./update.sh"
echo ""
echo " # Обновление из резервного репозитория"
echo " ./update.sh backup"
echo ""
echo " # Обновление из основного с созданием бэкапа в резервном"
echo " ./update.sh origin backup"
echo ""
echo " # Обновление из резервного с бэкапом в основной"
echo " ./update.sh backup origin"
echo ""
echo "🛠️ Другие полезные команды:"
echo ""
echo " ./start.sh # Быстрый запуск сервисов"
echo " ./stop.sh # Остановка сервисов"
echo " ./stop.sh --clean # Полная очистка"
echo " ./logs.sh # Просмотр логов"
echo " ./logs.sh web # Логи веб-сервера"
echo ""
echo "📚 Полная документация: cat SCRIPTS_README.md"
echo ""
echo "✅ Готово!"