From bf6a0e4c98a26a39e991c29d4f4585ee1fe3d7b5 Mon Sep 17 00:00:00 2001 From: Ariel Barreiro Date: Thu, 28 Mar 2024 13:22:14 -0300 Subject: [PATCH] README update --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 6272a08..1b10282 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ - [What is ddev-pimp-my-shell?](#what-is-ddev-pimp-my-shell) +- [ddev `post-import-db` hook](#ddev-post-import-db-hook) @@ -24,4 +25,25 @@ defaults. - https://starship.rs/ - https://github.com/charmbracelet/gum +It also has: + +- Some useful [scripts](pimp-my-shell/scripts) + +## ddev `post-import-db` hook + +I generally have import scripts that I ship either from other add-ons or +specific to projects and those scripts usually download the database from within +the container. Rather than downloading the database and then running +`ddev import-db --file=` I wanted to provide a way so that either way runs all +of my post-import-db commands both with the ddev import command as well as from +any helper script from within the project. + +So the way this works is that you can run +`/var/www/html/.ddev/pimp-my-shell/hooks/post-import-db.sh` from any script that +will be run in the container and it will take care of running all scripts on +`.ddev/pimp-my-shell/post-import-db.d/`. + +This also allows for other add-ons to add scripts to this directory so that they +will be run. + **Contributed and maintained by [@hanoii](https://github.com/hanoii)**