Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- # Copy & prepare Drupal config with db credentials for local development.
- cp -n ./drupal/web/sites/default/default.settings.local.php ./drupal/web/sites/default/settings.local.php
- # Install & update all Drupal components.
- docker-compose run php composer update --with-dependencies --verbose
- # Spin up db container.
- docker-compose up -d mariadb
- # Install Drupal.
- docker-compose run php drush --root="./web" si minimal --account-name=admin --account-pass=admin --account-mail=admin@example.com -y
- # Set the right site uuid to match existing configs.
- docker-compose run php drush --root="./web" cset system.site uuid 7fa85e74-8fa6-473c-8b84-91507f6d5093 -y
- # Import all existing configs into the site.
- docker-compose run php drush --root="./web" config-import -y
- # Install & update all node.js packages.
- docker-compose run node yarn upgrade
- # Restart docker containers.
- docker-compose down
- docker-compose up -d
Add Comment
Please, Sign In to add comment