Skip to content

Commit bf6a0e4

Browse files
committed
README update
1 parent a30de1a commit bf6a0e4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

+22
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<!-- toc -->
77

88
- [What is ddev-pimp-my-shell?](#what-is-ddev-pimp-my-shell)
9+
- [ddev `post-import-db` hook](#ddev-post-import-db-hook)
910

1011
<!-- tocstop -->
1112

@@ -24,4 +25,25 @@ defaults.
2425
- https://starship.rs/
2526
- https://github.com/charmbracelet/gum
2627

28+
It also has:
29+
30+
- Some useful [scripts](pimp-my-shell/scripts)
31+
32+
## ddev `post-import-db` hook
33+
34+
I generally have import scripts that I ship either from other add-ons or
35+
specific to projects and those scripts usually download the database from within
36+
the container. Rather than downloading the database and then running
37+
`ddev import-db --file=` I wanted to provide a way so that either way runs all
38+
of my post-import-db commands both with the ddev import command as well as from
39+
any helper script from within the project.
40+
41+
So the way this works is that you can run
42+
`/var/www/html/.ddev/pimp-my-shell/hooks/post-import-db.sh` from any script that
43+
will be run in the container and it will take care of running all scripts on
44+
`.ddev/pimp-my-shell/post-import-db.d/`.
45+
46+
This also allows for other add-ons to add scripts to this directory so that they
47+
will be run.
48+
2749
**Contributed and maintained by [@hanoii](https://github.com/hanoii)**

0 commit comments

Comments
 (0)