git.ntnlv.ca
Repositories
Help
Report an Issue
lbd.git
Code
Commits
Branches
Tags
Search
Tree:
7ea991d
Branches
Tags
prod
lbd.git
README.md
maj readme et gitignore
davvalent
commited
7ea991d
at 2024-05-18 04:33:38
README.md
Blame
History
Raw
# README.md ## webserver > The user that runs apache/php is www-data. > Run sudo chown -R www-data:www-data /var/www/deploy.log to make the file editable 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 ```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 ```bash $ 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 1. update sportspress par l'interface wp-admin local 1. gérer les modifications dans les fichiers suivis 1. tester la mise à jour localement 1. merge maj into dev 1. git branch -g maj 1. merge dev into prod 1. update sportspress par l'interface wp-admin prod 1. sur prod `git push -f` pour déployer les fichiers suivis