Skip to content

Instantly share code, notes, and snippets.

@grasmash
Last active October 16, 2023 21:30
Show Gist options
  • Save grasmash/2f416c5eb19205ebe8d13c47e55cc513 to your computer and use it in GitHub Desktop.
Save grasmash/2f416c5eb19205ebe8d13c47e55cc513 to your computer and use it in GitHub Desktop.
ACMS Install
Pre-requisites:
* Install composer. https://getcomposer.org/download/
* Start a MySQL database. You will need to know the connection credentials.
# Create a local Drupal project
composer create-project --no-interaction acquia/drupal-recommended-project
cd drupal-recommended-project
# At this point, you have a composer.json. Print contents:
cat composer.json
# Next, use the acms command to add/remove default modules based on your use case.
./vendor/bin/acms acms:build
# Install to the database. You can choose to install demo content
./vendor/bin/acms site:install
# Alternatively, install Umami:
./vendor/bin/drush site:install demo_umami
# Login. Replace URI with your local host.
./vendor/bin/drush uli --uri=https://local.drupal.com
# Export configuration
./vendor/bin/drush config:export
# Commit
git add -A
git commit -m 'Initial commit.'
# Make some changes in the UI! E.g., visit /admin/structure/types and delete a content type.
# Export again...
./vendor/bin/drush config:export
# See diff
git diff
# HUZZAH!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment