Files
fidem/start.sh
2025-07-27 15:47:34 +03:00

28 lines
1.0 KiB
Bash
Executable File
Raw 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
# Скрипт для запуска локального сервера
echo "🏥 Запуск сайта медицинского центра ФИДЕМ..."
echo "📍 Адрес: http://localhost:8000"
echo "🔄 Для остановки нажмите Ctrl+C"
echo ""
# Проверяем доступность Python
if command -v python3 &> /dev/null; then
echo "🐍 Используем Python 3..."
python3 -m http.server 8000
elif command -v python &> /dev/null; then
echo "🐍 Используем Python..."
python -m http.server 8000
elif command -v node &> /dev/null && command -v npx &> /dev/null; then
echo "🟢 Используем Node.js..."
npx http-server -p 8000 -c-1 -o
elif command -v php &> /dev/null; then
echo "🐘 Используем PHP..."
php -S localhost:8000
else
echo "❌ Не найден Python, Node.js или PHP для запуска локального сервера"
echo "📖 Откройте index.html напрямую в браузере"
exit 1
fi