Василий Устинов - Drupal + Drush

  • Published on
    27-Jul-2015

  • View
    65

  • Download
    0

Embed Size (px)

Transcript

1. Drupal + Drush Drupal Meetup 6, -, 2015 . 2. Drupal + Shell = Drush Drupal . Drush C Drush 3. Drush Windows http://docs.drush.org/en/ master/install/ - http://xandeadx.ru/blog/dr upal/167 - Ubuntu sudo apt-get install drush 4. Drupal drush dl Drupal drush dl --select 5. Drupal drush site-install standard --db- url='mysql://[db_user]:[db_pass]@localhost/[db_name]' -- site-name=Example , --account-name=admin --account-pass=password --clean-url --account-mail 6. drush dl modulename sites/all/modules drush en modulename y !!! drush en modulename y 7. drush l10n-update drush dl l10n_update drush en l10n_update y drush drush dl drush_language , drush language-add ru drush language-enable ru drush language-default ru . drush l10n-update 8. , drush up drush up drupal drush up modulename drush up --no-core , drush up --security-only , 9. drush drush archive-dump --destination=site_backup.tar.gz - drush archive-restore site_backup.tar.gz - --exclude=sites/default/files --no-core --overwrite drush sql-dump - drush sql-cli 10. drush drush cache-clear all (drush cc all) drush cron - drush user-create user1 --mail=mail@mail.ru" -- password=pass drush user-add-role role1 user1 drush upwd --password=pass" admin drush user-cancel username --delete-content drush vset maintenance_mode 1 (0 - ) 11. - ~/.drush/aliases.drushrc.php drush @local status drush @prod status 12. drush sql-sync @prod @local - . : --create-db --tables-list --skip-tables-key drush rsync @ prod @local - . : --exclude-files 13. http://www.drushcommands.com/ - drush https://github.com/drush-ops/drush/issues - drush https://www.drupal.org/node/594744 - drush Windows 14. Email: justinoff@ya.ru Vk: http://vk.com/vasilius_i Twitter: https://twitter.com/Ustinov_V !