This is the development repository for { your project's } Drupal website. It contains the codebase and an environment to run the site for development.
- Development Environment
- Getting Started
- Drupal Development
- Styleguide Development
- Deployment
- Additional Documentation
This project uses ddev for its development environment. To run the environment, you will need:
Docker and DDev can be installed with homebrew:
brew install docker --cask
brew install ddev
- Clone the project from github:
git clone https://github.com/palantirnet/your-project.git
- From inside the project root, run:
composer install
ddev start
- Install the Drupal site:
vendor/bin/phing install
(this can be run inside or outside of ddev) - Visit your site at your-project.ddev.site
You can refresh/reset your local Drupal site at any time. SSH into your ddev environment and then:
- Download the most current dependencies:
composer install
- Rebuild your local CSS and Drupal settings file:
phing build
- Reinstall Drupal:
phing install
(this will runbuild
implicitly) - Run your migrations:
phing migrate
- ... OR run all three phing targets at once:
phing install migrate
(again,install
runsbuild
for you)
- Shared development environment settings are committed to git in
docroot/sites/default/settings.ddev-overrides.php
- To customize local development settings, copy:
docroot/sites/default/default.settings.local.php
tosettings.local.php
docroot/sites/default/default.services.local.yml
toservices.local.yml
- Config is exported to the
config/
directory;config_split
module is used to manage environment-specific config - The
artifacts/
directory can be used to store files and database dumps that should not be checked in to git
Additional information on developing for Drupal within this environment is in docs/general/drupal_development.md.
@todo This section needs to be customized per-project.
cd styleguide
on your host machineyarn install
yarn serve
- control+c to stop
For additional documentation, refer to styleguide/README.md and styleguide/docs/*.
@todo This section needs to be customized per-project.
Project-specific:
General:
Copyright 2022 Palantir.net, Inc.