Only run if there is no built flag
This commit is contained in:
parent
38fb6002fb
commit
4d70c67c43
|
@ -14,6 +14,7 @@ case $1 in
|
||||||
install)
|
install)
|
||||||
drush site:install -y --account-pass=admin123 --existing-config
|
drush site:install -y --account-pass=admin123 --existing-config
|
||||||
drush user:login
|
drush user:login
|
||||||
|
touch .flag-built
|
||||||
;;
|
;;
|
||||||
|
|
||||||
refresh)
|
refresh)
|
||||||
|
|
|
@ -11,8 +11,8 @@ additional_fqdns: []
|
||||||
provider: default
|
provider: default
|
||||||
hooks:
|
hooks:
|
||||||
post-start:
|
post-start:
|
||||||
- composer: install
|
- exec: "[[ ! -f .flag-built ]] && composer install || exit 0"
|
||||||
- exec-host: ddev theme development
|
- exec-host: "[[ ! -f .flag-built ]] && ddev theme development || exit 0"
|
||||||
post-import-db:
|
post-import-db:
|
||||||
- exec: drush sql-sanitize -y --sanitize-password=password
|
- exec: drush sql-sanitize -y --sanitize-password=password
|
||||||
- exec: drush cr
|
- exec: drush cr
|
||||||
|
|
Loading…
Reference in a new issue