Drush unter cyon installieren: Unterschied zwischen den Versionen
Erscheinungsbild
Keine Bearbeitungszusammenfassung |
|||
| Zeile 22: | Zeile 22: | ||
cd ~/.drush | cd ~/.drush | ||
composer require "drush/drush: | composer require "drush/drush:8.*" | ||
==Old instsallation== | ==Old instsallation== | ||
Aktuelle Version vom 21. Dezember 2018, 17:08 Uhr
https://www.lullabot.com/articles/switching-drush-versions
Installation auf cyon Server
Composer installieren
cd
mkdir bin
curl -sS https://getcomposer.org/installer | php -- --install-dir=bin --filename=composer
chmod u+x ~/bin/composer
nano ~/.bashrc
alias drush='~/.drush/vendor/drush/drush/drush' alias composer='~/bin/composer'
Drush installieren
mkdir ~/.drush
cd ~/.drush
composer require "drush/drush:8.*"
Old instsallation
SSH auf den Server einloggen https://www.cyon.ch/support/a/wie-installiere-ich-drush
nano ~/.bashrc
alias drush='~/.drush/drush'
cd
mkdir bin
curl -sS https://getcomposer.org/installer | php -- --install-dir=bin
Alternative:
php -r "readfile('https://getcomposer.org/installer');" | php
php ~/bin/composer.phar install
mkdir .drush
cd .drush
php -r "readfile('https://s3.amazonaws.com/files.drush.org/drush.phar');" > drush
php drush core-status
chmod +x drush
bash
cd ~/www/Projekt
Testen:
drush cc