fix: renommer fichier sans extension pour éviter redirection reverse proxy
Le reverse proxy redirige tout *.html vers le chemin sans extension. Solution: utiliser _team-content (sans .html)
This commit is contained in:
@@ -79,15 +79,15 @@ RUN rm -rf .techradar/data/radar && \
|
|||||||
cp radar-business/config-business.json .techradar/data/config.json && \
|
cp radar-business/config-business.json .techradar/data/config.json && \
|
||||||
rm -rf .techradar/public && mkdir -p .techradar/public && \
|
rm -rf .techradar/public && mkdir -p .techradar/public && \
|
||||||
cp -r public/* .techradar/public/ && \
|
cp -r public/* .techradar/public/ && \
|
||||||
cp public/_team-content.html .techradar/public/_team-content.html 2>/dev/null || true && \
|
cp public/_team-content .techradar/public/_team-content 2>/dev/null || true && \
|
||||||
cp public/team-visualization-data.json .techradar/public/team-visualization-data.json 2>/dev/null || true && \
|
cp public/team-visualization-data.json .techradar/public/team-visualization-data.json 2>/dev/null || true && \
|
||||||
cp about.md .techradar/data/about.md 2>/dev/null || echo "about.md not found, skipping" && \
|
cp about.md .techradar/data/about.md 2>/dev/null || echo "about.md not found, skipping" && \
|
||||||
cp custom.css .techradar/src/styles/custom.css 2>/dev/null || echo "custom.css not found, skipping" && \
|
cp custom.css .techradar/src/styles/custom.css 2>/dev/null || echo "custom.css not found, skipping" && \
|
||||||
echo "Fichiers public copiés" && \
|
echo "Fichiers public copiés" && \
|
||||||
echo "📁 Vérification des fichiers team dans .techradar/public/:" && \
|
echo "📁 Vérification des fichiers team dans .techradar/public/:" && \
|
||||||
ls -la .techradar/public/ | grep -E "(team\.html|team-visualization)" && echo "✅ Fichiers team trouvés" || (echo "⚠️ Fichiers team non trouvés dans .techradar/public/" && echo "📁 Contenu de public/ source:" && ls -la public/ | head -10) && \
|
ls -la .techradar/public/ | grep -E "(team\.html|team-visualization)" && echo "✅ Fichiers team trouvés" || (echo "⚠️ Fichiers team non trouvés dans .techradar/public/" && echo "📁 Contenu de public/ source:" && ls -la public/ | head -10) && \
|
||||||
echo "📁 Vérification que _team-content.html existe dans public/ source:" && \
|
echo "📁 Vérification que _team-content existe dans public/ source:" && \
|
||||||
test -f public/_team-content.html && echo "✅ public/_team-content.html existe" || echo "❌ public/_team-content.html n'existe pas"
|
test -f public/_team-content && echo "✅ public/_team-content existe" || echo "❌ public/_team-content n'existe pas"
|
||||||
|
|
||||||
# Diagnostic : compter les fichiers markdown copiés dans .techradar/data/radar
|
# Diagnostic : compter les fichiers markdown copiés dans .techradar/data/radar
|
||||||
RUN echo "📊 Comptage des fichiers .md dans .techradar/data/radar" && \
|
RUN echo "📊 Comptage des fichiers .md dans .techradar/data/radar" && \
|
||||||
@@ -127,13 +127,13 @@ RUN if [ -d "out" ]; then \
|
|||||||
echo "📁 Contenu de out/ avant copie:" && \
|
echo "📁 Contenu de out/ avant copie:" && \
|
||||||
ls -la out/ | head -10 && \
|
ls -la out/ | head -10 && \
|
||||||
echo "" && \
|
echo "" && \
|
||||||
echo "🔍 Recherche de _team-content.html..." && \
|
echo "🔍 Recherche de _team-content..." && \
|
||||||
if [ -f "public/_team-content.html" ]; then \
|
if [ -f "public/_team-content" ]; then \
|
||||||
cp -v public/_team-content.html out/_team-content.html && echo "✅ _team-content.html copié depuis public/ vers out/"; \
|
cp -v public/_team-content out/_team-content && echo "✅ _team-content copié depuis public/ vers out/"; \
|
||||||
elif [ -f "/app/public/_team-content.html" ]; then \
|
elif [ -f "/app/public/_team-content" ]; then \
|
||||||
cp -v /app/public/_team-content.html out/_team-content.html && echo "✅ _team-content.html copié depuis /app/public/ vers out/"; \
|
cp -v /app/public/_team-content out/_team-content && echo "✅ _team-content copié depuis /app/public/ vers out/"; \
|
||||||
else \
|
else \
|
||||||
echo "⚠️ _team-content.html introuvable dans public/ ou /app/public/"; \
|
echo "⚠️ _team-content introuvable dans public/ ou /app/public/"; \
|
||||||
echo "📁 Contenu de public/:" && \
|
echo "📁 Contenu de public/:" && \
|
||||||
ls -la public/ 2>/dev/null | head -10 || echo "public/ non accessible"; \
|
ls -la public/ 2>/dev/null | head -10 || echo "public/ non accessible"; \
|
||||||
echo "📁 Contenu de /app/public/:" && \
|
echo "📁 Contenu de /app/public/:" && \
|
||||||
@@ -151,8 +151,8 @@ RUN if [ -d "out" ]; then \
|
|||||||
mkdir -p out/team && \
|
mkdir -p out/team && \
|
||||||
cp -rv /app/.techradar/public/team/* out/team/ && echo "✅ /team/index.html copié depuis /app/.techradar/public/team/"; \
|
cp -rv /app/.techradar/public/team/* out/team/ && echo "✅ /team/index.html copié depuis /app/.techradar/public/team/"; \
|
||||||
fi && \
|
fi && \
|
||||||
echo "🔍 VÉRIFICATION: _team-content.html dans out/:" && \
|
echo "🔍 VÉRIFICATION: _team-content dans out/:" && \
|
||||||
ls -la out/_team-content.html 2>/dev/null || echo "❌ _team-content.html absent de out/" && \
|
ls -la out/_team-content 2>/dev/null || echo "❌ _team-content absent de out/" && \
|
||||||
echo "" && \
|
echo "" && \
|
||||||
echo "📁 Vérification finale dans out/:" && \
|
echo "📁 Vérification finale dans out/:" && \
|
||||||
ls -la out/ | grep -E "(team\.html|team-visualization)" && echo "✅ Fichiers team présents dans out/" || echo "⚠️ Fichiers team non trouvés dans out/"; \
|
ls -la out/ | grep -E "(team\.html|team-visualization)" && echo "✅ Fichiers team présents dans out/" || echo "⚠️ Fichiers team non trouvés dans out/"; \
|
||||||
|
|||||||
@@ -9,11 +9,11 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('🔄 ÉQUIPE: Chargement du contenu _team-content.html');
|
console.log('🔄 ÉQUIPE: Chargement du contenu _team-content');
|
||||||
|
|
||||||
// Charger le contenu via fetch (nom de fichier qui évite la redirection du reverse proxy)
|
// Charger le contenu via fetch (fichier sans extension pour éviter redirection reverse proxy)
|
||||||
function loadTeamContent() {
|
function loadTeamContent() {
|
||||||
fetch('/_team-content.html')
|
fetch('/_team-content')
|
||||||
.then(function(response) {
|
.then(function(response) {
|
||||||
if (!response.ok) throw new Error('HTTP ' + response.status);
|
if (!response.ok) throw new Error('HTTP ' + response.status);
|
||||||
return response.text();
|
return response.text();
|
||||||
|
|||||||
Reference in New Issue
Block a user