fix: messages installation et serveur statique production
1. Messages finaux install scripts - Mise en avant de ./start.sh (recommandé) - Méthode manuelle en alternatif - Port production corrigé (3000 au lieu de 5173) 2. Serveur statique production (server/index.js) - Sert client/dist/ si build existe - Route / serve index.html en production - Mode dev : retourne info API JSON - Permet ./start.sh mode prod fonctionnel Fix issues identifiés : messages obsolètes + production non fonctionnelle. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+15
-9
@@ -82,7 +82,7 @@ echo ""
|
||||
|
||||
# Installer dépendances serveur
|
||||
echo "📦 Installation dépendances serveur..."
|
||||
cd ../server
|
||||
cd ./server
|
||||
npm install
|
||||
echo -e "${GREEN}✅ Dépendances serveur installées${NC}"
|
||||
echo ""
|
||||
@@ -152,17 +152,23 @@ echo ""
|
||||
echo "=================================="
|
||||
echo -e "${GREEN}✅ Installation terminée !${NC}"
|
||||
echo ""
|
||||
echo "📝 Prochaines étapes :"
|
||||
echo "🚀 Démarrage rapide :"
|
||||
echo ""
|
||||
echo " 1. Démarrer le serveur :"
|
||||
echo " cd server && npm run dev"
|
||||
echo " # Mode développement (recommandé)"
|
||||
echo " ./start.sh --dev"
|
||||
echo ""
|
||||
echo " 2. Démarrer le client (nouveau terminal) :"
|
||||
echo " cd client && npm run dev"
|
||||
echo " # Mode production"
|
||||
echo " ./start.sh"
|
||||
echo ""
|
||||
echo " 3. Accéder à l'application :"
|
||||
echo " • Développement local : https://localhost:5173"
|
||||
echo " • Depuis autre appareil (WiFi) : https://${NETWORK_IP}:5173"
|
||||
echo "📝 OU manuellement (deux terminaux) :"
|
||||
echo ""
|
||||
echo " Terminal 1 : cd server && npm run dev"
|
||||
echo " Terminal 2 : cd client && npm run dev"
|
||||
echo ""
|
||||
echo "🌐 Accès après démarrage :"
|
||||
echo " • Développement local : https://localhost:5173"
|
||||
echo " • Depuis autre appareil (WiFi) : https://${NETWORK_IP}:5173"
|
||||
echo " • Production : http://${NETWORK_IP}:3000"
|
||||
echo ""
|
||||
echo "💡 Configuration réseau :"
|
||||
echo " IP serveur détectée : ${NETWORK_IP}"
|
||||
|
||||
Reference in New Issue
Block a user