You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
We should remove the hardcoded options in the drupal:install command, so that each project can define the options they need inside their own repository's /drush/drushrc.php file (for drush 8+).
The following snippet is what we're using on a D8 project:
// Use a predetermined username and email and install Drupal using theproject'sexported config.$command_specific['site-install'] = [
'minimal',
'config-dir' => '../config/sync',
'account-name' => 'myhardtoguessadminaccountusername',
'account-mail' => '[email protected]',
];
For example, in this site, we want to use the "minimal" install profile for faster install, and using the config-dir option to import our configs after installation. But we're currently hardcoding the "standard" profile and not providing a way to pass alternative options in.
Great proposal. Let's be sure we still have a way to run the drupal:install command with sane defaults even when a project doesn't have a drushrc.php file.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We should remove the hardcoded options in the
drupal:install
command, so that each project can define the options they need inside their own repository's /drush/drushrc.php file (for drush 8+).The following snippet is what we're using on a D8 project:
For example, in this site, we want to use the "minimal" install profile for faster install, and using the config-dir option to import our configs after installation. But we're currently hardcoding the "standard" profile and not providing a way to pass alternative options in.
https://github.com/BluesparkLabs/spark/blob/master/src/Robo/Plugin/Commands/DrupalCommands.php#L54
The text was updated successfully, but these errors were encountered: