Mit Hilfe von Drush können wir Drupal Bibiotheken herunterladen um sie ohne CDN zu nutzen.
drush webform:libraries:download
Mit Hilfe von Drush können wir Drupal Bibiotheken herunterladen um sie ohne CDN zu nutzen.
drush webform:libraries:download
~/.bash_profile : edit / create
nano .bash_profile
Add alias
alias drush='php -c ~/httpdocs/drush.ini ~/httpdocs/vendor/drush/drush/drush'
Drush Error
Reset Drupal User Password via Drush + Commandline
drush user:password admin "mypassword123"
drush upwd admin "mypassword123"
Drush Error (#drush status) :
PHP-Cli 8.2
ln -snf /path/to/php/8.2/bin/php /etc/alternatives/php
Um eine einmalige Login Link zu erstellen (ohne Password-Reset Zwang) :
drush uli --name=MyUsername
So geht es:
drush php-eval 'my_custom_module_cron();'
Command 1:
drush sql:dump | gzip -c > /home/backup/db-$(date +%Y-%m-%d-%H%M).sql.gz
Error:
mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces
Lösung:
drush sql:dump --extra-dump=--no-tablespaces
Als ich das System (Drupal 8.9.3) auf Devel 4.0 updaten wollte, habe ich folgenden Fehler erhalten:
[error] (Currently using Missing or invalid module Array)