Drupal Getting Started Guide¶
This tutorial gives an example of the DDEV-Live commands specific to Drupal. First you will need to set up your DDEV-Live account and connect to your GitHub acccount using the Getting Started Guide. DDEV-Live supports other PHP applications and CMSs such as TYPO3, WordPress.
DDEV-Live default settings for Drupal¶
We give additional flags below to use if your project differs from these defaults.
- Default Drupal version is Drupal 8.
- Default docroot is the project root (ie the directory from which your site is served).
- Default branch is master.
composer installwill not run.
Add a Drupal site from your connected GitHub account¶
$ ddev-live create site drupal mysite --github-repo ddev-demo/mysite
ddev-live describe site mysite to view info about your site.
You can add flags for specific configuration options. Use
ddev-live create site drupal --help to see all possible flags and their descriptions.
||Specify the Drupal version,
||The docroot is the directory from which your site is served. The default is the project root,
This value is a relative path from your project root. For Drupal 8, the most common is
Here is an example for a Drupal 8 site that requires
composer install, with the docroot in /web:
$ ddev-live create site drupal ddev-demo/mysite --github-repo ddev-demo/mysite --docroot web --run-composer-install