pantheon-systems / terminus-build-tools-plugin

Manage multidev environments for a Pantheon site using a GitHub PR workflow.
83 stars 68 forks source link

build:env:create `--db-only` flag for initial environment creation #455

Open daggerhart opened 2 years ago

daggerhart commented 2 years ago

Working on a site that has a very large file system of Drupal media. The multidevs created don't always need the entire filesystem copied over, because we can easily enable stage_file_proxy on the multidev.

The \Pantheon\TerminusBuildTools\Commands\EnvCreateCommand::createBuildEnv() method already allows fo an option called --db-only, and the \Pantheon\Terminus\Collections\Environments::create() method supports options for no-db and no-files.

At a glance, it seems trivial to allow site owners to create an environment without copying the filesystem. By interpretting the EnvCreateCommand::createBuildEnv() --db-only flag to the Environments::create() no-db option.

Is there any reason not to do this?