Skip to content

Commit

Permalink
Merge pull request #9 from Annertech/hook-logic
Browse files Browse the repository at this point in the history
Run auth ssh command only if not on a Nixsal box, enable stage_file_proxy only if required in composer
  • Loading branch information
bserem authored Oct 14, 2024
2 parents e357e23 + 56bff58 commit b859564
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config.hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ hooks:
- exec-host: "cp .ddev/scripts/git-hooks/commit-msg .git/hooks/commit-msg"
- exec-host: "chmod +x .git/hooks/commit-msg"
post-start:
- exec-host: "ddev auth ssh"
- exec-host: "if [ ! $ANNERTECH_LOCAL_DEV ]; then ddev auth ssh; fi"
post-import-db:
- exec: "drush cr"
- exec: "drush sql:sanitize -y"
- exec: "drush en stage_file_proxy -y"
- exec: "drush uli"
- exec: "if [ $(grep 'stage_file_proxy' composer.json) ]; then drush en stage_file_proxy -y; fi"
- exec: "drush uli"

0 comments on commit b859564

Please sign in to comment.