Install
Requirements
A clean Drupal codebase where you should be able to install a minimal
Drupal installation. There are a couple of ways to achieve this :
Each of these options has requirements. We encourage you to review their corresponding Getting Started
sections.
There are pre-configured project templates for popular Drupal hosting platforms. We strongly recommend starting the setup process besides the local development experience you choose. The recipe apply process should be the same:
info
We will follow as guide a setup using drupal/recommended-project
as a template for illustration purposes.
Installing Drupal
The recipe should be applied in a minimal
profile Drupal installation, to avoid any conflicts with the configurations from the recipe.
- DDEV
- Lando
mkdir drupal-decoupled && cd drupal-decoupled
ddev config --project-type=drupal --php-version=8.3 --docroot=web
ddev start
ddev composer create drupal/recommended-project:^10
ddev config --update
ddev composer require drush/drush
ddev drush site:install minimal --account-name=admin --account-pass=admin -y
mkdir drupal-decoupled && cd drupal-decoupled
lando init --source cwd --recipe drupal10 --webroot=web --name=drupal-decoupled -y
lando composer create-project drupal/recommended-project:^10 tmp && cp -r tmp/. . && rm -rf tmp
lando start
lando composer require drush/drush
lando drush site:install minimal --db-url=mysql://drupal10:drupal10@database/drupal10 --account-name=admin --account-pass=admin -y