Siehe auch CONTRIBUTING.md mit Hinweisen zum Ausführen.
WSJRDP_SCRIPTS_CONFIG- Die Konfigurations-Datei, die geladen werden soll (Defaultconfig-dev.yml).WSJRDP_SCRIPTS_START_TIME- Start-Zeit, wird nur außerhalb von Produktion verwendet (kein Default).
Einen dump der konfigurierten Datenbank in eine Datei schreiben. Wenn
<dump_path> nicht angegeben ist, dann wird in
data/<db-name>.<timestamp>.dump geschrieben.
uv run tools/db_dump.py [--format=[p,c,t,d]] [dump_path]
WSJRDP_SCRIPTS_CONFIG=config-prod.yml uv run tools/db_dump.py [--format=[p,c,t,d]] [dump_path]Einen Datenbank-dump wieder einstellen. Aktuell ist es nicht möglich, einen Datenbank-dump in Produktion einzuspielen!
uv run tools/db_restore.py [dump_path]Hinweis: Für den restore wird config-dev.yml gelesen.
WSJRDP_SCRIPTS_CONFIG=config-prod.yml uv run tools/db_dump_and_restore_into_dev.pyBeispiel Skripte finden sich im Unterverzeichnis
examples. Um z.B. eine Test-E-Mail zu schicken, kann
man
uv run examples/example_send_plaintext_email.pyaufrufen.
Siehe auch https://github.com/hitobito/development/blob/master/docker-compose.yml
- Host:
localhost - Port:
5432 - User:
hitobito - Password:
hitobito - Database:
hitobito_development
- Host:
localhost - WebUI:
http://localhost:1080 - SMTP-Server:
1025 - SMTP-Port:
1025
# Test mit hitobito dev auf http://localhost:1080/
uv run tools/mailing_from_yml.py tools/$DATUM__$NAME.yml
# Produktiv mit Mailserver
WSJRDP_SCRIPTS_CONFIG=config-prod.yml uv run tools/mailing_from_yml.py tools/$DATUM__$NAME.yml