admin:services:benevalibre.chapril.org
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
admin:services:benevalibre.chapril.org [2020/10/31 17:47] – fpoulain | admin:services:benevalibre.chapril.org [2023/04/04 13:25] (Version actuelle) – [Introduction] darkjam | ||
---|---|---|---|
Ligne 3: | Ligne 3: | ||
===== Introduction ===== | ===== Introduction ===== | ||
+ | * Ce service est basé sur Bénévalibre. | ||
+ | * Site principal : https:// | ||
+ | * Sources : https:// | ||
+ | * Documentation : https:// | ||
===== Installation des pré-requis ===== | ===== Installation des pré-requis ===== | ||
- | ===== Création des dossiers ===== | + | apt install libapache2-mod-wsgi-py3 python3 virtualenv git make |
+ | Le backend mariadb imposée par cette version de django nécessite pas mal de dépendances de dev (le connecteur version debian n' | ||
+ | |||
+ | apt install build-essential python3-dev libmariadbclient-dev | ||
+ | ===== Préparation de la DB ===== | ||
+ | |||
+ | <code SQL> | ||
+ | CREATE DATABASE benevalibre ; | ||
+ | CREATE USER ' | ||
+ | GRANT ALL PRIVILEGES ON `benevalibre`.* To ' | ||
+ | </ | ||
+ | |||
+ | ===== Préparation des dossiers ===== | ||
+ | |||
+ | mkdir / | ||
+ | cd / | ||
+ | mkdir / | ||
+ | ln -s / | ||
+ | cd www/ | ||
+ | | ||
+ | ===== Installation de bénévalibre ===== | ||
+ | |||
+ | git clone https:// | ||
+ | cd benevalibre | ||
+ | git checkout master | ||
+ | |||
+ | On doit installer le connecteur sql donc on procède en deux temps. | ||
+ | |||
+ | make venv | ||
+ | venv/ | ||
+ | |||
+ | make init | ||
+ | |||
+ | Durant le '' | ||
+ | |||
+ | <code bash config.env> | ||
+ | ENV=production | ||
+ | DJANGO_SECRET_KEY=s3cr3t | ||
+ | DJANGO_ALLOWED_HOSTS=benevalibre.chapril.org, | ||
+ | DJANGO_DATABASE_URL=mysql:// | ||
+ | DEFAULT_FROM_EMAIL=benevalibre@chapril.org | ||
+ | ADMINS=benevalibre-support@chapril.org | ||
+ | </ | ||
+ | |||
+ | Le '' | ||
+ | |||
+ | * updater le virtualenv | ||
+ | * vérifier le chargement du logiciel | ||
+ | * appliquer les migrations de base | ||
+ | * collecter les statiques | ||
+ | * compiler la doc | ||
+ | |||
+ | ===== Mise à jour de bénévalibre ===== | ||
+ | |||
+ | git pull && make update | ||
+ | |||
+ | ou | ||
+ | |||
+ | < | ||
+ | cd / | ||
+ | git fetch --all | ||
+ | git rebase origin/ | ||
+ | make update | ||
+ | chown www-data: . -R # bienvenue car on travaille en root et pas en www-data... | ||
+ | </ | ||
===== Configuration apache2 ===== | ===== Configuration apache2 ===== | ||
+ | On adapte la conf nginx fournie par le README.md en suivant la logique documentée pour un [[https:// | ||
+ | |||
+ | <code apache / | ||
+ | < | ||
+ | ServerName benevalibre.chapril.org | ||
+ | ServerAdmin benevalibre-support@chapril.org | ||
+ | |||
+ | ErrorLog ${APACHE_LOG_DIR}/ | ||
+ | CustomLog ${APACHE_LOG_DIR}/ | ||
+ | |||
+ | WSGIProcessGroup benevalibre | ||
+ | WSGIDaemonProcess benevalibre python-home=/ | ||
+ | |||
+ | WSGIScriptAlias / / | ||
+ | |||
+ | < | ||
+ | <Files wsgi.py> | ||
+ | Require all granted | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Alias /static/ / | ||
+ | |||
+ | < | ||
+ | Require all granted | ||
+ | </ | ||
+ | |||
+ | Alias /media/ / | ||
+ | |||
+ | < | ||
+ | Require all granted | ||
+ | </ | ||
+ | |||
+ | Alias / | ||
+ | </ | ||
+ | </ | ||
===== Configuration monitoring ===== | ===== Configuration monitoring ===== | ||
+ | <code C / | ||
+ | /* == benevalibre.chapril.org == */ | ||
+ | vars.http_vhosts[" | ||
+ | http_vhost = " | ||
+ | http_uri = "/" | ||
+ | vhost_tls = " | ||
+ | http_string = "Le logiciel libre qui facilite la gestion et la valorisation du bénévolat dans les associations." | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== Tester l' | ||
+ | |||
+ | cd / | ||
+ | ./ | ||
+ | |||
+ | ===== Personnaliser la présentation du logiciel ===== | ||
+ | |||
+ | Fait via le dossier '' | ||
+ | ===== Création d'un utilisateur admin ===== | ||
+ | |||
+ | < | ||
+ | =(^-^)=root@lamp: | ||
+ | |||
+ | www-data@lamp: | ||
+ | |||
+ | www-data@lamp: | ||
+ | Adresse mail: benevalibre-support@chapril.org | ||
+ | Password: | ||
+ | Password (again): | ||
+ | Superuser created successfully. | ||
+ | </ | ||
+ | |||
+ | Puis : | ||
+ | * ajouter le mot de passe dans le gestionnaire dédié ; | ||
+ | * se connecter au service web : | ||
+ | * mettre « ChaprilAdmin » en pseudo, | ||
+ | * mettre un avatar Chapril : {{: |
admin/services/benevalibre.chapril.org.1604166457.txt.gz · Dernière modification : 2020/10/31 17:47 de fpoulain