diff --git a/project_template/.ddev/commands/host/quick-start b/project_template/.ddev/commands/host/quick-start deleted file mode 100755 index a915905866efef8a63ce3ec3e8cf62da7bcb293e..0000000000000000000000000000000000000000 --- a/project_template/.ddev/commands/host/quick-start +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -## Description: Installs Drupal CMS and opens it in a browser. - -set -e - -ddev start -ddev composer install -ddev drush site:install --yes -test -n "$CI" || ddev launch diff --git a/project_template/.ddev/config.yaml b/project_template/.ddev/config.yaml index c5014fb8a4273fbd560f853d90c049155d8b7933..49e5f9727f598cb9f54338552858528a508d7b1c 100644 --- a/project_template/.ddev/config.yaml +++ b/project_template/.ddev/config.yaml @@ -16,6 +16,9 @@ web_environment: [] nodejs_version: "16" corepack_enable: false ddev_version_constraint: '>= 1.23.0' +hooks: + post-start: + - exec: 'test -d vendor || composer install' # Key features of DDEV's config.yaml: diff --git a/project_template/composer.json b/project_template/composer.json index 8a602320802940ffd76a167c2faaa52bc38b9803..0bccf2e0a0b6dad007515ba165fa765228ba0f20 100644 --- a/project_template/composer.json +++ b/project_template/composer.json @@ -71,7 +71,7 @@ "<bg=blue;fg=white> </>", "", "<bg=yellow;fg=black>Next steps</>:", - " * Run <fg=yellow>composer quick-start</> to initialize Drupal CMS and open it in a browser", + " * Run <fg=yellow>composer launch</> to open a browser and install Drupal CMS", " * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html", " * Get support: https://drupal.org/support", " * Get involved with the Drupal community: https://drupal.org/getting-involved" @@ -79,8 +79,9 @@ } }, "scripts": { - "quick-start": [ - "@php ./web/core/scripts/drupal quick-start drupal_cms_installer" + "launch": [ + "@composer install", + "@php -S localhost:8888 -t web ./web/.ht.router.php" ] } }