diff --git a/project_template/README.md b/project_template/README.md index ed9cd576792d403938ddb12d24ed46adff8d7245..6dee68a16e4e0f90b065f5ffe20a3fa55efe9664 100644 --- a/project_template/README.md +++ b/project_template/README.md @@ -4,11 +4,19 @@ Drupal CMS is a fast-moving open source product that enables site builders to ea ## Getting started -If you want to run Drupal CMS locally use [DDEV](https://ddev.com), and follow these instructions: +If you want to use [DDEV](https://ddev.com) to run Drupal CMS locally, follow these instructions: 1. Install DDEV following the [documentation](https://ddev.com/get-started/) 2. Open the command line and `cd` to the root directory of this project -3. Run the command `./launch-drupal-cms.sh` +3. Run the following commands: +```shell +ddev config --project-type=drupal11 --docroot=web +ddev start +ddev composer install +ddev launch +``` + +Drupal CMS has the same system requirements as Drupal core, so you can use your preferred setup to run it locally. [See the Drupal User Guide for more information](https://www.drupal.org/docs/user_guide/en/installation-chapter.html) on how to set up Drupal. ### Installation options diff --git a/project_template/launch-drupal-cms.sh b/project_template/launch-drupal-cms.sh deleted file mode 100755 index 8e0cfe69be827911dbe8f9cf0de9af122cdb9cec..0000000000000000000000000000000000000000 --- a/project_template/launch-drupal-cms.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env bash - -### -# Launches Drupal CMS using DDEV. -# -# This requires that DDEV be installed and available in the PATH, and only works in -# Unix-like environments (Linux, macOS, or the Windows Subsystem for Linux). This will -# initialize DDEV configuration, start the containers, install dependencies, and open -# Drupal CMS in the browser. -### - -# Abort this entire script if any one command fails. -set -e - -if ! command -v ddev >/dev/null; then - echo "DDEV needs to be installed. Visit https://ddev.com/get-started for instructions." - exit 1 -fi - -NAME=$(basename $PWD) -# If there are any other DDEV projects in this system with this name, add a numeric suffix. -declare -i n=$(ddev list | grep --count "$NAME") -if [ $n > 0 ]; then - NAME=$NAME-$(expr $n + 1) -fi - -# Configure DDEV if not already done. -test -d .ddev || ddev config --project-type=drupal11 --docroot=web --php-version=8.3 --ddev-version-constraint=">=1.24.0" --project-name="$NAME" -# Start your engines. -ddev start -# Install dependencies if not already done. -test -f composer.lock || ddev composer install -# All set, let's get Drupalin'. -ddev launch