-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
31 lines (24 loc) · 814 Bytes
/
Copy pathstart.sh
File metadata and controls
31 lines (24 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
echo "🚀 Démarrage d'EcoleDirecte Exporter..."
echo ""
# Vérifier si Node.js est installé
if ! command -v node &> /dev/null; then
echo "❌ Node.js n'est pas installé"
echo "📥 Installez Node.js depuis: https://nodejs.org/"
echo ""
# Sur macOS, proposer d'installer avec Homebrew
if [[ "$OSTYPE" == "darwin"* ]]; then
echo "💡 Sur macOS, vous pouvez installer avec Homebrew:"
echo " brew install node"
fi
# Sur Ubuntu/Debian
if [[ -f /etc/debian_version ]]; then
echo "💡 Sur Ubuntu/Debian, vous pouvez installer avec:"
echo " sudo apt update && sudo apt install nodejs npm"
fi
exit 1
fi
echo "✅ Node.js détecté: $(node --version)"
echo ""
echo "🌐 Démarrage du serveur..."
node server.js