Skip to content

Commit

Permalink
[TASK] Improve output of initialize command
Browse files Browse the repository at this point in the history
Related: #1047
  • Loading branch information
mschwemer committed Aug 6, 2024
1 parent 8cd9198 commit 513d55e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .ddev/commands/host/initialize
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,32 @@ do
curl -s $HOST/$ASSET_PATH/$ASSET_VERSION/$asset -o .project/data/$asset
done

echo "Symlink configuration"
echo "Symlink site configuration"
cp .build/vendor/typo3/cms-install/Resources/Private/FolderStructureTemplateFiles/root-htaccess .build/public/.htaccess
mkdir -p .build/config/sites/main
ln -snf ../../../../.project/typo3/config.yaml .build/config/sites/main/config.yaml

echo "Symlink system configuration"
mkdir -p .build/config/system
ln -snf ../../../.project/typo3/settings.php .build/config/system/settings.php
ln -snf ../../../.project/typo3/additional.php .build/config/system/additional.php

echo "Importing database"
echo "Import database"
mv .project/data/powermail-db.gz .project/data/powermail-db.sql.gz
ddev import-db --file=.project/data/powermail-db.sql.gz

echo "Run 'composer install'"
ddev composer install

echo "Extracting fileadmin"
echo "Extract fileadmin"
tar xf .project/data/powermail-fileadmin.tar.gz -C .build/public/

echo "Copy .htaccess"
cp .build/vendor/typo3/cms-install/Resources/Private/FolderStructureTemplateFiles/root-htaccess .build/public/.htaccess

echo "Update Languages (needed for behaviour tests)"
echo "Update language packs (needed for behaviour tests)"
ddev typo3 language:update

ddev describe

echo "Thanks for supporting 'EXT:powermail"
echo "Thanks for supporting 'EXT:powermail'"

0 comments on commit 513d55e

Please sign in to comment.