Site web de la LBD : dépôt pour déploiement des mises à jour de Sportspress (préservation des modifications locales sur mesure). #lbd

David Valentine David Valentine update sportspress f90e1b9 @ 2025-04-05 02:43:22
wp-content update sportspress 2025-04-05 02:43:22
.gitignore 662 B track header.php 2024-07-29 21:33:26
README.md 1.29 KB maj readme et gitignore 2024-05-18 04:33:38
horaire-et-pointage.php 4.14 KB Merge branch 'dev' into prod 2022-05-29 15:44:21
README.md

README.md

webserver

The user that runs apache/php is https://askubuntu.com/questions/617803/php-apache-runs-as-which-user-on-ubuntu-serveritable by the web server. The other files you want to perform operations on also need to be writable by the webserver. https://askubuntu.com/questions/617803/php-apache-runs-as-which-user-on-ubuntu-server

Attention : ajouter user david au groupe www-data : sudo usermod -a -G www-data david

css

/* DANS L'ESPACE ADMIN */
.sp-player-list tr:nth-child(even) {background: #f2ede3}
.sp-event-list tr:nth-child(even) {background: #f2ede3}
.data-event a {float: left}

Fichiers suivis : voir .gitignore

git

  • initialisation d'un dépôt local, branche dev
  • création de dépôt distant --bare
  • uploaded post-receive
$ git remote add origin ssh://ntnlvca@ntnlv.ca:27/home/ntnlvca/public_html/git/lbd.git
$ git push -u origin prod

mise à jour de sportspress

  1. créer une branche pour test de la mise à jour
  2. update sportspress par l'interface wp-admin local
  3. gérer les modifications dans les fichiers suivis
  4. tester la mise à jour localement
  5. merge maj into dev
  6. git branch -g maj
  7. merge dev into prod
  8. update sportspress par l'interface wp-admin prod
  9. sur prod git push -f pour déployer les fichiers suivis