This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
name: Deploy React Site
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-deploy:
|
||||||
|
runs-on: self-hosted
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: "20"
|
||||||
|
|
||||||
|
- run: npm ci
|
||||||
|
|
||||||
|
- run: npm run build
|
||||||
|
|
||||||
|
- run: rsync -av --delete dist/ /srv/apps/websites/coeur-ua-pam.org/
|
||||||
@@ -2,7 +2,11 @@
|
|||||||
|
|
||||||
**Coeur UA PAM** est la plateforme web moderne de l’association _Cœur UA Pont-à-Mousson_. Cette nouvelle version migre de WordPress vers une architecture **React** pour offrir une expérience plus fluide, rapide et sécurisée.
|
**Coeur UA PAM** est la plateforme web moderne de l’association _Cœur UA Pont-à-Mousson_. Cette nouvelle version migre de WordPress vers une architecture **React** pour offrir une expérience plus fluide, rapide et sécurisée.
|
||||||
|
|
||||||
👉 Site officiel : [coeur-ua-pam.fr](https://coeur-ua-pam.fr)
|
👉 Site officiel : [coeur-ua-pam.org](httpDev/App/CoeurUAPam ✗ git remote set-url origin https://git.cohaise.dev/Esiah/CoeurUAPam^C
|
||||||
|
Dev/App/CoeurUAPam ✗ ^C
|
||||||
|
Dev/App/CoeurUAPam ✗ git remote set-url origin https://git.cohaise.dev/Esiah/CoeurUAPam
|
||||||
|
avertissement : remote.origin.url a des valeurs multiples
|
||||||
|
fatal : impossible de régler 'remote.origin.url' à 'https://git.cohaise.dev/Esiah/CoeurUAPam's://coeur-ua-pam.org)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
# 1. Empêcher le serveur de lister les dossiers
|
|
||||||
Options -Indexes
|
|
||||||
|
|
||||||
# 2. Définir le fichier par défaut
|
|
||||||
DirectoryIndex index.html
|
|
||||||
|
|
||||||
<IfModule mod_rewrite.c>
|
|
||||||
RewriteEngine On
|
|
||||||
|
|
||||||
# Si le navigateur demande un dossier qui existe, on force quand même React
|
|
||||||
# Sauf si c'est la racine
|
|
||||||
RewriteCond %{REQUEST_URI} !^/index.html$
|
|
||||||
RewriteCond %{REQUEST_FILENAME} -d
|
|
||||||
RewriteRule ^(.*)$ /index.html [L]
|
|
||||||
|
|
||||||
# Gestion standard : si c'est pas un fichier réel, on va sur index.html
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
|
||||||
RewriteRule . /index.html [L]
|
|
||||||
</IfModule>
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
User-agent: *
|
User-agent: *
|
||||||
Allow: /
|
Allow: /
|
||||||
|
|
||||||
Sitemap: https://coeur-ua-pam.fr/sitemap.xml
|
Sitemap: https://coeur-ua-pam.org/sitemap.xml
|
||||||
+4
-4
@@ -1,22 +1,22 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
<url>
|
<url>
|
||||||
<loc>https://coeur-ua-pam.fr/</loc>
|
<loc>https://coeur-ua-pam.org/</loc>
|
||||||
<lastmod>2025-03-25</lastmod>
|
<lastmod>2025-03-25</lastmod>
|
||||||
<priority>1.0</priority>
|
<priority>1.0</priority>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://coeur-ua-pam.fr/a-propos</loc>
|
<loc>https://coeur-ua-pam.org/a-propos</loc>
|
||||||
<lastmod>2025-03-25</lastmod>
|
<lastmod>2025-03-25</lastmod>
|
||||||
<priority>0.8</priority>
|
<priority>0.8</priority>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://coeur-ua-pam.fr/notre-histoire</loc>
|
<loc>https://coeur-ua-pam.org/notre-histoire</loc>
|
||||||
<lastmod>2025-03-25</lastmod>
|
<lastmod>2025-03-25</lastmod>
|
||||||
<priority>0.8</priority>
|
<priority>0.8</priority>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://coeur-ua-pam.fr/evenements</loc>
|
<loc>https://coeur-ua-pam.org/evenements</loc>
|
||||||
<lastmod>2025-03-25</lastmod>
|
<lastmod>2025-03-25</lastmod>
|
||||||
<priority>0.8</priority>
|
<priority>0.8</priority>
|
||||||
</url>
|
</url>
|
||||||
|
|||||||
Reference in New Issue
Block a user