Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

319 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wsjrdp Skripte

Siehe auch CONTRIBUTING.md mit Hinweisen zum Ausführen.

Umgebungs-Variablen

  • WSJRDP_SCRIPTS_CONFIG - Die Konfigurations-Datei, die geladen werden soll (Default config-dev.yml).
  • WSJRDP_SCRIPTS_START_TIME - Start-Zeit, wird nur außerhalb von Produktion verwendet (kein Default).

Tools

Datenbank Dump

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]

Datenbank Restore

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]

Produktions-Datenbank in Development-Umgebung einspielen

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.py

Beispiel-Skripte

Beispiel Skripte finden sich im Unterverzeichnis examples. Um z.B. eine Test-E-Mail zu schicken, kann man

uv run examples/example_send_plaintext_email.py

aufrufen.

Zugriff auf Hitobito Test (hit) Umgebung

Siehe auch https://github.com/hitobito/development/blob/master/docker-compose.yml

PostgreSQL

  • Host: localhost
  • Port: 5432
  • User: hitobito
  • Password: hitobito
  • Database: hitobito_development

Mailcatcher

Hitobito

Send Mail

# 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

About

No description, website, or topics provided.

Resources

Contributing

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages