Skip to content

Instantly share code, notes, and snippets.

@siriokun
Last active October 23, 2023 06:39
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siriokun/3e3e07c0839a68bb51aced7b9155dd25 to your computer and use it in GitHub Desktop.
Save siriokun/3e3e07c0839a68bb51aced7b9155dd25 to your computer and use it in GitHub Desktop.
DDEV + Colima
brew install colima docker
colima start --cpu 4 --memory 4
# colima start (after computer restart)
# cd repo
ddev config --project-type=drupal9 --docroot=web --create-docroot
ddev start
# import db
ddev import-db --file=database.sql.gz
# uninstall modules
ddev drush pm-uninstall -y simplesamlphp_auth memcache acquia_purge purge
$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml';
$settings['cache']['bins']['render'] = 'cache.backend.null';
$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';
@siriokun
Copy link
Author

Backup database from Platformsh

platform db:dump

Backup files from Platformsh

platform mount:download

@siriokun
Copy link
Author

Fix HTTPS Issue

dev config global --router=traefik
mkdir .ddev/custom_certs
cd .ddev/custom_certs
mkcert --cert-file=ddev.crt --key-file=ddev.key *.ddev.site 127.0.0.1
ddev restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment