Mudanças entre as edições de "Drush"

De MochilaWiki
Ir para navegaçãoIr para pesquisar
 
Linha 15: Linha 15:
  
  
 
+
ajustando caminho do executável no bash
 +
<source lang="bash">
 +
echo 'export PATH="$HOME/.config/composer/vendor/bin:$PATH"' >> ~/.bash_profile
 +
echo 'export PATH="$HOME/.composer/vendor/drush/drush:$PATH"' >> ~/.bash_profile
 +
</source>
  
  

Edição atual tal como às 20h07min de 15 de abril de 2019

Instalando

apt-get install curl php php-xml
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
composer global require drush/drush:8.2.1
export PATH="$HOME/.config/composer/vendor/bin:$PATH"
export PATH="$HOME/.composer/vendor/drush/drush:$PATH"
source ~/.bashrc

Baixando Drupal 7

drush dl drupal-7 --select


ajustando caminho do executável no bash

echo 'export PATH="$HOME/.config/composer/vendor/bin:$PATH"' >> ~/.bash_profile
echo 'export PATH="$HOME/.composer/vendor/drush/drush:$PATH"' >> ~/.bash_profile


Rascunho

composer require symfony/var-dumper
composer require drupal/devel:^2.0.0 --no-update
composer update
composer why symfony/var-dumper

Referências

I https://www.liquidweb.com/kb/install-drush-ubuntu-16-04/