File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 6
6
<!-- toc -->
7
7
8
8
- [ What is ddev-pimp-my-shell?] ( #what-is-ddev-pimp-my-shell )
9
+ - [ ddev ` post-import-db ` hook] ( #ddev-post-import-db-hook )
9
10
10
11
<!-- tocstop -->
11
12
@@ -24,4 +25,25 @@ defaults.
24
25
- https://starship.rs/
25
26
- https://github.com/charmbracelet/gum
26
27
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
+
27
49
** Contributed and maintained by [ @hanoii ] ( https://github.com/hanoii ) **
You can’t perform that action at this time.
0 commit comments