Guest User

Untitled

a guest
Oct 16th, 2017
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. # Copy & prepare Drupal config with db credentials for local development.
  4. cp -n ./drupal/web/sites/default/default.settings.local.php ./drupal/web/sites/default/settings.local.php
  5.  
  6. # Install & update all Drupal components.
  7. docker-compose run php composer update --with-dependencies --verbose
  8.  
  9. # Spin up db container.
  10. docker-compose up -d mariadb
  11.  
  12. # Install Drupal.
  13. docker-compose run php drush --root="./web" si minimal --account-name=admin --account-pass=admin --account-mail=admin@example.com -y
  14.  
  15. # Set the right site uuid to match existing configs.
  16. docker-compose run php drush --root="./web" cset system.site uuid 7fa85e74-8fa6-473c-8b84-91507f6d5093 -y
  17.  
  18. # Import all existing configs into the site.
  19. docker-compose run php drush --root="./web" config-import -y
  20.  
  21. # Install & update all node.js packages.
  22. docker-compose run node yarn upgrade
  23.  
  24. # Restart docker containers.
  25. docker-compose down
  26. docker-compose up -d
Add Comment
Please, Sign In to add comment