Drush unter cyon installieren: Unterschied zwischen den Versionen
Erscheinungsbild
Keine Bearbeitungszusammenfassung |
|||
| (4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
https://www.lullabot.com/articles/switching-drush-versions | |||
==Installation auf cyon Server== | |||
[[Datei:Cyon php drush.png|miniatur]] | |||
===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 | SSH auf den Server einloggen | ||
https://www.cyon.ch/support/a/wie-installiere-ich-drush | |||
nano ~/.bashrc | nano ~/.bashrc | ||
| Zeile 10: | Zeile 36: | ||
curl -sS https://getcomposer.org/installer | php -- --install-dir=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 | php ~/bin/composer.phar install | ||
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