Skip to content

Commit b4f1bb2

Browse files
authored
Do not reinstall existing environments
1 parent 941bb7f commit b4f1bb2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.gitpod.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ tasks:
1212
ddev drush si -y --account-pass=admin --site-name="DrupalPod" demo_umami
1313
command: |
1414
echo y | ddev start
15-
if [ -n "$DP_INSTALL_PROFILE" ]; then
15+
16+
# Skip setup if it already ran once and if no specific install profile was requested
17+
if [ ! -f /workspace/.drupalpod_initiated ] && [ -n "$DP_INSTALL_PROFILE" ]; then
1618
ddev drush si -y --account-pass=admin --site-name="DrupalPod" "$DP_INSTALL_PROFILE"
1719
fi
20+
touch /workspace/.drupalpod_initiated
1821
gp preview $(gp url 8080)
1922
2023
# VScode xdebug extension

0 commit comments

Comments
 (0)