From 2966e801c4f5670d81ed7f9bf98f4d7cb0e9ef04 Mon Sep 17 00:00:00 2001 From: xEsiah Date: Mon, 19 Oct 2026 15:32:30 +0200 Subject: [PATCH] chore: server and DNS migration --- .github/workflows/deploy.yml | 23 +++++++++++++++++++++++ README.md | 6 +++++- public/.htaccess | 20 -------------------- public/robots.txt | 2 +- public/sitemap.xml | 8 ++++---- 5 files changed, 33 insertions(+), 26 deletions(-) create mode 100644 .github/workflows/deploy.yml delete mode 100644 public/.htaccess diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..b87c886 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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/ diff --git a/README.md b/README.md index 1f2921e..cbcfd43 100644 --- a/README.md +++ b/README.md @@ -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. -👉 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) --- diff --git a/public/.htaccess b/public/.htaccess deleted file mode 100644 index 20d6f58..0000000 --- a/public/.htaccess +++ /dev/null @@ -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 - - - 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] - \ No newline at end of file diff --git a/public/robots.txt b/public/robots.txt index 07ba841..9525ac8 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,4 +1,4 @@ User-agent: * Allow: / -Sitemap: https://coeur-ua-pam.fr/sitemap.xml \ No newline at end of file +Sitemap: https://coeur-ua-pam.org/sitemap.xml \ No newline at end of file diff --git a/public/sitemap.xml b/public/sitemap.xml index 3d8bc26..7d4e59a 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -1,22 +1,22 @@ - https://coeur-ua-pam.fr/ + https://coeur-ua-pam.org/ 2025-03-25 1.0 - https://coeur-ua-pam.fr/a-propos + https://coeur-ua-pam.org/a-propos 2025-03-25 0.8 - https://coeur-ua-pam.fr/notre-histoire + https://coeur-ua-pam.org/notre-histoire 2025-03-25 0.8 - https://coeur-ua-pam.fr/evenements + https://coeur-ua-pam.org/evenements 2025-03-25 0.8