# 🚀 DÉPLOIEMENT URGENT - Correction RĂ©fĂ©rentiels ## ⚠ ERREUR ACTUELLE ``` Erreur de base de donnĂ©es. ``` ## ✅ FICHIERS À DÉPLOYER OBLIGATOIREMENT ### 1. routes/web.php **Action** : REMPLACER le fichier existant **Chemin production** : `/home/c2685816c/public_html/maintenance-back/routes/web.php` ### 2. app/Controllers/ReferentialController.php **Action** : REMPLACER le fichier existant **Chemin production** : `/home/c2685816c/public_html/maintenance-back/app/Controllers/ReferentialController.php` ## 🔧 PROCÉDURE DE DÉPLOIEMENT ### Via cPanel - Gestionnaire de fichiers 1. **Connexion** : AccĂ©dez Ă  votre cPanel 2. **Naviguer** : Allez dans le gestionnaire de fichiers 3. **Dossier** : Ouvrez `/public_html/maintenance-back/` 4. **Remplacer** : - `routes/web.php` avec la version locale - `app/Controllers/ReferentialController.php` avec la version locale ### Via FTP/SFTP 1. **Connexion** : Connectez-vous au serveur 2. **Navigation** : Allez dans `/home/c2685816c/public_html/maintenance-back/` 3. **Upload** : Remplacez les 2 fichiers ## ⚡ VALIDATION POST-DÉPLOIEMENT AprĂšs le dĂ©ploiement, testez immĂ©diatement : - ✅ https://maintenance-back.insuite-ci.com/public/referentials - ✅ Ajout d'un type de maintenance - ✅ Ajout d'une localisation ## 🆘 EN CAS DE PROBLÈME Si l'erreur persiste aprĂšs dĂ©ploiement : 1. VĂ©rifiez : https://maintenance-back.insuite-ci.com/public/debug-simple.php 2. Diagnostic : https://maintenance-back.insuite-ci.com/public/referentials-diagnostic.html --- **CRITIQUE** : Le systĂšme ne fonctionnera PAS tant que ces 2 fichiers ne sont pas dĂ©ployĂ©s !