Skip to content

Commit dd38c82

Browse files
authored
[codespaces] Move db pull to on-create hook
1 parent 4b29eb2 commit dd38c82

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.devcontainer/on-create.sh

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
## https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_lifecycle-scripts
4+
35
# Install ddev.
46
curl https://raw.githubusercontent.com/drud/ddev/master/scripts/install_ddev.sh | bash
57

@@ -17,3 +19,6 @@ ddev config global --instrumentation-opt-in=true
1719

1820
# Start ddev.
1921
ddev start
22+
23+
# Import the database.
24+
ddev pull va --skip-files -y

.devcontainer/post-start.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
## https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_lifecycle-scripts
4+
35
# Start ddev if it's not already running.
46
if ! docker ps | grep ddev > /dev/null; then
57
ddev start

.devcontainer/update-content.sh

-4
This file was deleted.

0 commit comments

Comments
 (0)