Created
June 30, 2023 14:15
-
-
Save macmladen/1d10aff27e8449d4e68c82fba1a159f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create and switch to directory | |
mkdir drupaljam | |
cd drupaljam | |
# Init DDEV | |
ddev config --project-type=drupal10 --docroot=web --create-docroot | |
ddev start | |
# Get Drupal, drush | |
ddev composer create drupal/recommended-project | |
ddev composer require drush/drush drupal/admin_toolbar | |
# Install the site and login | |
ddev drush site:install \ | |
-y \ | |
--account-name=admin \ | |
--account-pass=admin \ | |
--account-mail=next@bluefish.rs \ | |
--site-mail=next@bluefish.rs \ | |
--site-name=DrupalNext | |
# Just launch the site | |
ddev launch | |
# Login drush way | |
ddev drush uli | |
# Mac only | |
open -u $(ddev drush uli) | |
# Add admin_menu | |
ddev drush en -y admin_toolbar admin_toolbar_tools admin_toolbar_search admin_toolbar_links_access_filter \ | |
# Add Chapter Three DrupalNext module | |
ddev composer require drupal/next | |
# Enable modules | |
ddev drush en -y next next_jsonapi | |
ddev drush cron | |
## NEXT | |
npx create-next-app -e https://github.com/chapter-three/next-drupal-basic-starter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a brilliant script. I also like admin_toolbar module.
In my mind,, usually, the drush should be installed to the dev environment by "composer require --dev drush/drush"