Skip to main content

Alias drush 12 and Drupal 10

Submitted by admin on
Drush Logo

The new version of Drupal is here, Drupal 10 has a lot advantages over the other versions of Drupal 7, 8, 9 and it works with drush 12 and PHP 8.1, when upgrade could found some issues with version modules, but you can try to fix updating with some dev version for each one. 
This post is for share tips about the drush 12 alias, when you coming from Drupal 9 and drush 11, you found the issue when you try to run drush with alias for update your live site: 
“PHP Fatal error: Uncaught TypeError: Symfony\Component\Process\Process::setTty(): Argument #1 (tty) must be of type bool, int give…”

Solution

The way to fix this error is update the alias file (yml) under your drush directory, replace the section: 
tty: true 
instead of 
tty:0 
if after this you try to run drush @misite.live status get an error about “TTY mode requires /dev/tty to be read/write”, you can use under you root site (the main directory for you site) the vendor/bin/drush @mysite.live status and it should works.

I hope this post can help to update and use your drush alias.

Regards 
 

Secciones
Tags

Contenido Relacionado