digitalpolygon/drupal-recommended-project

Project template for Drupal 9 projects with a relocated document root

0.0.1 2022-05-27 06:20 UTC

This package is auto-updated.

Last update: 2024-03-28 00:47:24 UTC


README

This is an opinionated project template for new Drupal 9 projects. It is based on the Drupal Recommended Project, with the principal difference being the addition of several modules and themes.

It includes

Installation and usage

Create a new project using composer

composer create-project --no-interaction digitalpolygon/drupal-recommended-project

After creating the project, it can be completely customized to suite your requirements. You should never update the project template.

Local Setup

Once you have the project dependencies setup on your local environment, you should be able to setup your local environment with the sites.

  1. Create a composer project using
composer create-project --no-interaction digitalpolygon/drupal-recommended-project
  1. Configure git by executing
  2. Move into the project folder - cd drupal-recommended-project
  3. If you are using Macbook M1 please proceed to Configuring Project for Apple M
  4. Run ddev setup to build your project locally
  5. Your local site should be up and running

Configuring Project for Apple M1

1. Update .ddev/docker-compose.local.yaml

Create the file if it doesn't already exist. Update it so that the web service has property platform: linux/x86_64. Example: adfdsaf

services:
  web:
    platform: linux/x86_64

2. Update .ddev/config.local.yaml

Create the file if it doesn't already exist. Update it so mutagen_enabled: true is set.

Useful ddev commands

  1. ddev setup - Use this command to setup the project from scratch.
  2. ddev refresh - Use this command to sync your local with dev environment.
  3. ddev xdebug on - Use this command to enable xdebug.
  4. ddev frontend - Builds frontend dependencies.

Frontend Theme

Please add your FE build commands in build.sh script available in scripts directory.

Pantheon Integration

composer require digitalpolygon/drupal-pantheon-integration
  • Update provider.yml to use pantheon as a provider
  • Update refresh command to use pantheon as provider