From 7a80230727cdb34068bb13df55858a38a9443d77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ph=C3=A9na=20Proxima?= <adam@phenaproxima.net> Date: Thu, 23 Jan 2025 13:07:19 -0500 Subject: [PATCH 1/2] Remove launcher and replace with docs --- project_template/README.md | 12 ++++++++-- project_template/launch-drupal-cms.sh | 34 --------------------------- 2 files changed, 10 insertions(+), 36 deletions(-) delete mode 100755 project_template/launch-drupal-cms.sh diff --git a/project_template/README.md b/project_template/README.md index ed9cd5767..1baeae4a7 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 run Drupal CMS locally, it is recommended to use [DDEV](https://ddev.com), and 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=drupalll --docroot=web +ddev start +ddev composer install +ddev launch +``` + +Drupal CMS has the same system requirements as Drupal core, so you don't need to use DDEV if you don't want to. [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 with your own tech stack. ### Installation options diff --git a/project_template/launch-drupal-cms.sh b/project_template/launch-drupal-cms.sh deleted file mode 100755 index 8e0cfe69b..000000000 --- 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 -- GitLab From f307630991e6f7e66407d645680b76a5702aa835 Mon Sep 17 00:00:00 2001 From: Adam G-H <32250-phenaproxima@users.noreply.drupalcode.org> Date: Thu, 23 Jan 2025 23:24:59 +0000 Subject: [PATCH 2/2] Apply 3 suggestion(s) to 1 file(s) Co-authored-by: Pamela Barone <31375-pameeela@users.noreply.drupalcode.org> --- project_template/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project_template/README.md b/project_template/README.md index 1baeae4a7..6dee68a16 100644 --- a/project_template/README.md +++ b/project_template/README.md @@ -4,19 +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, it is recommended to 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 following commands: ```shell -ddev config --project-type=drupalll --docroot=web +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 don't need to use DDEV if you don't want to. [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 with your own tech stack. +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 -- GitLab