This project uses a Composer based workflow to manage Drupal and its dependencies. It also includes configuration to use DDEV-Local for local development. DDEV itself depends on Docker.
- Composer
Get Composer from https://getcomposer.org/download/ You might want to move the composer.phar
file to a location that is globally executable. For example:
mv composer.phar /usr/local/bin/composer
To verify Composer has been installed, execute this command: composer --version
- DDEV
Make sure your local environment meets DDEV's system requirements which include Docker. Then, follow the getting started guide to install DDEV. For Linux/macOS users this can be done using Homebrew.
brew tap drud/ddev && brew install ddev
To verify DDEV has been installed, execute this command: ddev --version
If installing for the first time, you might have to execute the following command for local HTTPS certificates to work:
mkcert -install
For operating system specific instructions, refer to the official installation instructions.
- Clone the repository
git clone [email protected]:heddn/install_profile.git
- Install the project dependencies.
cd install_profile
ddev composer install
- Start DDEV
ddev start
This operation may take a while if Docker images needs to be downloaded. At the end of this process, the site can be reached at https://install-profile.ddev.site.
- Install Drupal
The project includes a script that will install Drupal from existing configuration files. Execute the following command:
ddev composer si
- To generate an administration login, execute this command:
ddev exec drush uli
TL;DR; put UUID of the content item in custom_default_content.info.yml
, then drush dcem custom_default_content
Longer version:
- Enable default_content module
drush dce node {nid}
(replace node {nid} with the appropriate entity_type and ID as appropriate) grab UUID, then populate in .info.ymldrush dcem custom_default_content
Refer to the theme's README.txt for instructions.