An example Drupal 9 application.
This repository has been archived on 2025-01-07. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2020-07-22 10:28:10 +01:00
assets Initial commit 2020-07-22 09:54:46 +01:00
config/sync Initial commit 2020-07-22 09:54:46 +01:00
patches Initial commit 2020-07-22 09:54:46 +01:00
tools Add Docker 2020-07-22 10:28:10 +01:00
.docker.env.example Add Docker 2020-07-22 10:28:10 +01:00
.dockerignore Add Docker 2020-07-22 10:28:10 +01:00
.env.example Add Docker 2020-07-22 10:28:10 +01:00
.gitignore Add Docker 2020-07-22 10:28:10 +01:00
composer.json Initial commit 2020-07-22 09:54:46 +01:00
composer.lock Initial commit 2020-07-22 09:54:46 +01:00
docker-compose.yaml Add Docker 2020-07-22 10:28:10 +01:00
helpers.php Add Docker 2020-07-22 10:28:10 +01:00
Makefile Add Docker 2020-07-22 10:28:10 +01:00
README.md Add Docker 2020-07-22 10:28:10 +01:00

Drupal 9 stream demo

An example Drupal 9 application to use as a demo on Gary's stream.

Dependencies are managed using Composer, including Drupal core and all contrib projects. This project is based on drupal/recommended-project.

For more information, see:

Usage

Starting the project

The project is using Docker and Docker Compose for local development.

Run the make command to create the required files, download Drupal core, the additional contrib modules and PHP libraries, and install Drupal.

If you are using Traefik (recommended), then the site should now be available at http://stream-demo.docker.localhost.

Running Composer commands

Compser commands can be run via the docker-compose run command:

docker-compose run --rm composer <command>

For example, to add the Admin Toolbar module:

docker-compose run --rm composer require drupal/admin_toolbar

Running Drush commands

Drush commands can be run via the docker-compose run command:

docker-compose run --rm php vendor/bin/drush <command>

For example, to rebuild the cache:

docker-compose run --rm php vendor/bin/drush cache:rebuild

Alternatively, you could connect to the php container using docker-compose exec php and run vendor/bin/drush <command> within the container.