amazeeio / drupal-integrations

Add this project to any Drupal distribution based on drupal/core-composer-scaffold to enable it for use on Lagoon.
https://packagist.org/packages/amazeeio/drupal_integrations
1 stars 4 forks source link

Generate alias file #15

Open bomoko opened 1 year ago

bomoko commented 1 year ago

This introduces a command to generate a file of aliases - this is particularly useful when dealing with sites that live on separate clusters when accessing via the ssh-portal

bomoko commented 1 year ago

Thanks @tobybellwood - should all be sorted now

tobybellwood commented 1 year ago

also getting failures on drush 12 (but not drush 11) trying to use one of the lg generated aliases

[drupal-seed]cli-drupal:/app$ drush --alias-path /tmp/drush @lagoon-ssh.test1 st
PHP Fatal error:  Uncaught TypeError: Symfony\Component\Process\Process::setTty(): Argument #1 ($tty) must be of type bool, string given, called in /app/vendor/drush/drush/src/Runtime/RedispatchHook.php on line 94 and defined in /app/vendor/symfony/process/Process.php:1016
Stack trace:
#0 /app/vendor/drush/drush/src/Runtime/RedispatchHook.php(94): Symfony\Component\Process\Process->setTty()
#1 /app/vendor/drush/drush/src/Runtime/RedispatchHook.php(66): Drush\Runtime\RedispatchHook->redispatch()
#2 /app/vendor/drush/drush/src/Runtime/RedispatchHook.php(54): Drush\Runtime\RedispatchHook->redispatchIfRemote()
#3 /app/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php(44): Drush\Runtime\RedispatchHook->initialize()
#4 /app/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php(36): Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->doInitializeHook()
#5 /app/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php(29): Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->callInitializeHook()
#6 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(145): Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->initialize()
#7 /app/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(376): Consolidation\AnnotatedCommand\CommandProcessor->initializeHook()
#8 /app/vendor/symfony/console/Command/Command.php(292): Consolidation\AnnotatedCommand\AnnotatedCommand->initialize()
#9 /app/vendor/symfony/console/Application.php(1081): Symfony\Component\Console\Command\Command->run()
#10 /app/vendor/symfony/console/Application.php(320): Symfony\Component\Console\Application->doRunCommand()
#11 /app/vendor/symfony/console/Application.php(174): Symfony\Component\Console\Application->doRun()
#12 /app/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run()
#13 /app/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
#14 /app/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run()
#15 /app/vendor/drush/drush/drush(4): require('...')
#16 /app/vendor/bin/drush(119): include('...')
#17 {main}
  thrown in /app/vendor/symfony/process/Process.php on line 1016
 [warning] Drush command terminated abnormally.