mglaman / wasm-drupal

Drupal in WASM
https://wasm-drupal.mglaman.dev/
MIT License
33 stars 6 forks source link

Export should match the Drush archive manifest #76

Open mglaman opened 3 months ago

mglaman commented 3 months ago

Drush has an archive:dump and archive:restore. In Drupal Slack, moshe made me aware of these commands and that both Acquia and Pantheon support importing a Drupal site from this format: https://drupal.slack.com/archives/C62H9CWQM/p1722430197373169

Due to the SAPI name being embed, we can't invoke Drush directly, and the ArchiveDumpCommands command uses processes directly, we need to create a compatible version for ourselves. The export.php script can make a compatible archive.

This also solves #11 and #10 as users can take the archive and use ddev drush archive:restore.

Something like:

mkdir my-drupal-site && cd my-drupal-site
mv ~/Downloads/drupal.zip .
ddev config --project-type=drupal --php-version=8.3 --docroot=web
ddev start
ddev drush archive:restore drupal.zip