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

De MochilaWiki
Ir para navegaçãoIr para pesquisar
(Criou página com 'Atualizando Drush <source lang="bash"> pear upgrade drush </source>')
 
 
(Uma revisão intermediária pelo mesmo usuário não está sendo mostrada)
Linha 1: Linha 1:
Atualizando Drush
+
Instalando
 
<source lang="bash">
 
<source lang="bash">
pear upgrade drush
+
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
 
</source>
 
</source>
 +
 +
Baixando Drupal 7
 +
<source lang="bash">
 +
drush dl drupal-7 --select
 +
</source>
 +
 +
 +
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>
 +
 +
 +
== Rascunho ==
 +
composer require symfony/var-dumper
 +
composer require drupal/devel:^2.0.0 --no-update
 +
composer update
 +
composer why symfony/var-dumper
 +
 +
== Referências ==
 +
* https://github.com/consolidation/cgr
 +
* https://docs.drush.org/en/8.x/install-alternative/
 +
I https://www.liquidweb.com/kb/install-drush-ubuntu-16-04/

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/