davvalent commited on 2024-05-18 04:33:38
Showing 2 changed files, with 21 additions and 10 deletions.
| ... | ... |
@@ -10,11 +10,12 @@ |
| 10 | 10 |
!*/ |
| 11 | 11 |
|
| 12 | 12 |
# if the files to be tracked are in subdirectories |
| 13 |
+!wp-content/themes/lbd/* |
|
| 13 | 14 |
!wp-content/themes/rookie/functions.php |
| 14 | 15 |
!wp-content/themes/rookie/style.css |
| 15 | 16 |
!wp-content/themes/rookie/framework.css |
| 17 |
+!wp-content/themes/rookie/js/scripts.js |
|
| 18 |
+!wp-content/themes/rookie/inc/template-tags.php |
|
| 16 | 19 |
!wp-content/plugins/sportspress/templates/event-fixtures-results.php |
| 17 | 20 |
!wp-content/plugins/sportspress/templates/player-list.php |
| 18 | 21 |
!wp-content/plugins/sportspress/includes/api/class-sp-rest-api.php |
| 19 | 22 |
\ No newline at end of file |
| 20 |
-!wp-content/themes/rookie/js/scripts.js |
|
| 21 |
-!wp-content/themes/rookie/inc/template-tags.php |
|
| 22 | 23 |
\ No newline at end of file |
| ... | ... |
@@ -17,17 +17,27 @@ Attention : ajouter user david au groupe www-data : `sudo usermod -a -G www-da |
| 17 | 17 |
.data-event a {float: left}
|
| 18 | 18 |
``` |
| 19 | 19 |
|
| 20 |
-## git |
|
| 21 |
- |
|
| 22 |
-Initialisation d'un dépôt local, branche dev. |
|
| 23 |
- |
|
| 24 |
-Création de branche prod : merge dev into prod pour déployer. |
|
| 20 |
+Fichiers suivis : voir `.gitignore` |
|
| 25 | 21 |
|
| 26 |
-Création de dépôt distant --bare |
|
| 22 |
+## git |
|
| 27 | 23 |
|
| 28 |
-upload post-receive |
|
| 24 |
+- initialisation d'un dépôt local, branche dev |
|
| 25 |
+- création de dépôt distant --bare |
|
| 26 |
+- uploaded post-receive |
|
| 29 | 27 |
|
| 30 |
-``` |
|
| 28 |
+```bash |
|
| 31 | 29 |
$ git remote add origin ssh://ntnlvca@ntnlv.ca:27/home/ntnlvca/public_html/git/lbd.git |
| 32 | 30 |
$ git push -u origin prod |
| 33 | 31 |
``` |
| 32 |
+ |
|
| 33 |
+## mise à jour de sportspress |
|
| 34 |
+ |
|
| 35 |
+1. créer une branche pour test de la mise à jour |
|
| 36 |
+1. update sportspress par l'interface wp-admin local |
|
| 37 |
+1. gérer les modifications dans les fichiers suivis |
|
| 38 |
+1. tester la mise à jour localement |
|
| 39 |
+1. merge maj into dev |
|
| 40 |
+1. git branch -g maj |
|
| 41 |
+1. merge dev into prod |
|
| 42 |
+1. update sportspress par l'interface wp-admin prod |
|
| 43 |
+1. sur prod `git push -f` pour déployer les fichiers suivis |
|
| 34 | 44 |
\ No newline at end of file |
| 35 | 45 |