SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Drush and Drupal.
Administration

                Michael Volchek
                Web-developer
                Drupal-club (Belarus)
                twitter: mikhail_volchek
                drupal-sliot.by
For whom?

• Who wants to implement current updates rapidly

• Who doesn’t like to do the same actions again and again

• Who chooses Linux hosting

• Who likes shell (drupal+shell=drush)

• And it is comfortable for local developing (deployment,
  supporting, migration, backup)
Basic Commands

• Drush <host> status

• Drush dl <project_1> < project_2> < project_3>

• the same with drush en/dis/pm-uninstall

• Drush cc [all|menu|css-js…]

• Drush help <some_command>

• etc
Coworking Drush and Linux

• For example:

• drush dis pathauto && drush pm-uninstall pathauto &&
  rm –rf pathauto

• drush dl omega_tools && drush en omega_tools –y

• drush pm-list | grep omega
New Modules - New Commands

• For example:

• drush omega-subtheme "Test theme" html5
  --machine_name=test_theme && drush en test_theme -y && drush
  pm-list | grep test_theme
Install Drupal

• Prepare database (mysql>create database
    <DB_name>;)
•   Use one drush command site-install (or alias si)

•   drush si standard --db-
    url=mysql://<DB_user>:<passwd>@<DB_host>/<DB_n
    ame> --db-su=<admin> -db-su-pw=<some_password>
    --site-name=‘Dev Site!’
Recover user’s password

or how to crack Drupal users

Use

•drush uli -l http://<somehost>
or
•drush upwd <user> --password=<password>
Minor Drupal Updating

7.10 to 7.14

•!Backup! Project DataBase and Files /.htaccess and robots.txt
•Move from project all custom files/folders
•Switch on update module
•drush upc / up -y
•Wait for a moment
•That’s all
•It takes you about 5 minutes
•Use the same command for contrib modules UPD
Major updating… faced with

• Contributed module developing (for example:
  /project/photos – last update - 2009-Dec-30)

• But it needs to migrate about 150 albums and 6000
  photos

• If you still hardcode (or hook) contributed modules

• Need to rewrite custom themes/modules and migration
  scripts
Drush Updating

•   /usr/local/share/drush
•   cd /usr/local/share/
•   drush dl drush --destination=.
•   and use drush cc drush (clear drush cache)
qd command

•   ready Drupal profile
•   Sqlite issue
•   Server settings (ports, proxy)
•   Why to do it?
Alias

• $aliases['dev'] = array('root' => '/path/to/drupal',
  'uri' => 'dev.mydrupalsite.com', );

• drush @dev status

• $ drush --root=/path/to/drupal
  --uri=dev.mydrupalsite.com status
Git + cron + drush

• GitHub.com is our basic repo

• Use script files (*.sh)

• Use git command (for example: git pull) there

• Use drush command there (sql-dump or cc all)

• And cron schedule (crontab -e)
Git + cron + drush
Drush in windows

• Windows installer from 5.x version
• To install with online connection (required pecl library)
• Additional mysql software tuning (for example drush sql-
  dump)
Drush Hardships

• To start using it. For window’s and click-mouse funs it may be a
   psychological issue

• That's not the game for share hosting

• More flexible and usable in Linux platform.

• At the beginning you need to learn a list of popular commands. U
   can print it and stick to wall.

• Update modules issue in distributives (for example, OpenAtrium)
Conclusion

• Use open source software

• Commands shell – more health-given for your fingers =)

• It saves your time!
Useful links

• drush.ws - documentation
• http://igusev.ru/drupal/omega/omega-drush-subtheme-creation - use
    with omega
•   http://www.summasolutions.net/blogposts/implementing-drush-commands
    - write your own commands
•   http://civicactions.com/team/owen_barton - interesting screencasts
Thanks


   Michael Volchek
   Drupal Club (Belarus)
   skype: fannrmus
   twitter: mikhail_volchek

Weitere ähnliche Inhalte

Was ist angesagt?

Strategies for Backing Up MongoDB
Strategies for Backing Up MongoDBStrategies for Backing Up MongoDB
Strategies for Backing Up MongoDBMongoDB
 
Control your service resources with systemd
 Control your service resources with systemd  Control your service resources with systemd
Control your service resources with systemd Marian Marinov
 
Oreilly Webcast 01 19 10
Oreilly Webcast 01 19 10Oreilly Webcast 01 19 10
Oreilly Webcast 01 19 10Sean Hull
 
Improve your storage with bcachefs
Improve your storage with bcachefsImprove your storage with bcachefs
Improve your storage with bcachefsMarian Marinov
 
Guava Overview Part 2 Bucharest JUG #2
Guava Overview Part 2 Bucharest JUG #2 Guava Overview Part 2 Bucharest JUG #2
Guava Overview Part 2 Bucharest JUG #2 Andrei Savu
 
Cgroup resource mgmt_v1
Cgroup resource mgmt_v1Cgroup resource mgmt_v1
Cgroup resource mgmt_v1sprdd
 
Hadoop 2.x HDFS Cluster Installation (VirtualBox)
Hadoop 2.x  HDFS Cluster Installation (VirtualBox)Hadoop 2.x  HDFS Cluster Installation (VirtualBox)
Hadoop 2.x HDFS Cluster Installation (VirtualBox)Amir Sedighi
 
Contribuir a Drupal - Entorno
Contribuir a Drupal - EntornoContribuir a Drupal - Entorno
Contribuir a Drupal - EntornoKeopx
 
Linux container, namespaces & CGroup.
Linux container, namespaces & CGroup. Linux container, namespaces & CGroup.
Linux container, namespaces & CGroup. Neeraj Shrimali
 
Backup, restore and repair database in mongo db linux file
Backup, restore and repair database in mongo db linux fileBackup, restore and repair database in mongo db linux file
Backup, restore and repair database in mongo db linux filePrem Regmi
 
Backup, Restore, and Disaster Recovery
Backup, Restore, and Disaster RecoveryBackup, Restore, and Disaster Recovery
Backup, Restore, and Disaster RecoveryMongoDB
 
LSA2 - 02 Control Groups
LSA2 - 02   Control GroupsLSA2 - 02   Control Groups
LSA2 - 02 Control GroupsMarian Marinov
 
Introduction to Mesos
Introduction to MesosIntroduction to Mesos
Introduction to Mesoskoboltmarky
 

Was ist angesagt? (20)

Drush
DrushDrush
Drush
 
Day 2-some fun coding
Day 2-some fun codingDay 2-some fun coding
Day 2-some fun coding
 
Strategies for Backing Up MongoDB
Strategies for Backing Up MongoDBStrategies for Backing Up MongoDB
Strategies for Backing Up MongoDB
 
Control your service resources with systemd
 Control your service resources with systemd  Control your service resources with systemd
Control your service resources with systemd
 
Oreilly Webcast 01 19 10
Oreilly Webcast 01 19 10Oreilly Webcast 01 19 10
Oreilly Webcast 01 19 10
 
LSA2 - 02 Namespaces
LSA2 - 02  NamespacesLSA2 - 02  Namespaces
LSA2 - 02 Namespaces
 
Guava
GuavaGuava
Guava
 
Improve your storage with bcachefs
Improve your storage with bcachefsImprove your storage with bcachefs
Improve your storage with bcachefs
 
Guava Overview Part 2 Bucharest JUG #2
Guava Overview Part 2 Bucharest JUG #2 Guava Overview Part 2 Bucharest JUG #2
Guava Overview Part 2 Bucharest JUG #2
 
Cgroup resource mgmt_v1
Cgroup resource mgmt_v1Cgroup resource mgmt_v1
Cgroup resource mgmt_v1
 
Containers > VMs
Containers > VMsContainers > VMs
Containers > VMs
 
Node JS | Dilkash Shaikh Mahajan
Node JS | Dilkash Shaikh MahajanNode JS | Dilkash Shaikh Mahajan
Node JS | Dilkash Shaikh Mahajan
 
Hadoop 2.x HDFS Cluster Installation (VirtualBox)
Hadoop 2.x  HDFS Cluster Installation (VirtualBox)Hadoop 2.x  HDFS Cluster Installation (VirtualBox)
Hadoop 2.x HDFS Cluster Installation (VirtualBox)
 
Contribuir a Drupal - Entorno
Contribuir a Drupal - EntornoContribuir a Drupal - Entorno
Contribuir a Drupal - Entorno
 
First steps on CentOs7
First steps on CentOs7First steps on CentOs7
First steps on CentOs7
 
Linux container, namespaces & CGroup.
Linux container, namespaces & CGroup. Linux container, namespaces & CGroup.
Linux container, namespaces & CGroup.
 
Backup, restore and repair database in mongo db linux file
Backup, restore and repair database in mongo db linux fileBackup, restore and repair database in mongo db linux file
Backup, restore and repair database in mongo db linux file
 
Backup, Restore, and Disaster Recovery
Backup, Restore, and Disaster RecoveryBackup, Restore, and Disaster Recovery
Backup, Restore, and Disaster Recovery
 
LSA2 - 02 Control Groups
LSA2 - 02   Control GroupsLSA2 - 02   Control Groups
LSA2 - 02 Control Groups
 
Introduction to Mesos
Introduction to MesosIntroduction to Mesos
Introduction to Mesos
 

Ähnlich wie Drush&drupal. administration

Drush and drupal. администрирование. Волчек Михаил
Drush and drupal. администрирование. Волчек МихаилDrush and drupal. администрирование. Волчек Михаил
Drush and drupal. администрирование. Волчек МихаилPVasili
 
Drush to simplify Drupalers work - Sivaji
Drush to simplify Drupalers work - SivajiDrush to simplify Drupalers work - Sivaji
Drush to simplify Drupalers work - SivajiDrupal Camp Delhi
 
Drush. Why should it be used?
Drush. Why should it be used?Drush. Why should it be used?
Drush. Why should it be used?Sergei Stryukov
 
Sergei Stryukov.Drush.Why it should be used.DrupalCamp Kyiv 2011
Sergei Stryukov.Drush.Why it should be used.DrupalCamp Kyiv 2011Sergei Stryukov.Drush.Why it should be used.DrupalCamp Kyiv 2011
Sergei Stryukov.Drush.Why it should be used.DrupalCamp Kyiv 2011camp_drupal_ua
 
Drush A beginners guide to a advanced tool.
Drush A beginners guide to a advanced tool.Drush A beginners guide to a advanced tool.
Drush A beginners guide to a advanced tool.Mediacurrent
 
A Drush Primer - DrupalCamp Chattanooga 2013
A Drush Primer - DrupalCamp Chattanooga 2013A Drush Primer - DrupalCamp Chattanooga 2013
A Drush Primer - DrupalCamp Chattanooga 2013Chris Hales
 
Drush 5.0 (DrupalCamp LA 2012) - Chris Charlton
Drush 5.0 (DrupalCamp LA 2012) - Chris CharltonDrush 5.0 (DrupalCamp LA 2012) - Chris Charlton
Drush 5.0 (DrupalCamp LA 2012) - Chris CharltonChris Charlton
 
Hong Kong Drupal User Group - Introduction of Drush
Hong Kong Drupal User Group - Introduction of DrushHong Kong Drupal User Group - Introduction of Drush
Hong Kong Drupal User Group - Introduction of DrushFrancis Yan
 
Drush workshop
Drush workshopDrush workshop
Drush workshopJuampy NR
 
How to Use the Command Line to Increase Speed of Development
How to Use the Command Line to Increase Speed of DevelopmentHow to Use the Command Line to Increase Speed of Development
How to Use the Command Line to Increase Speed of DevelopmentAcquia
 
Drush for drupal website builder
Drush for drupal website builderDrush for drupal website builder
Drush for drupal website builderAdolfo Nasol
 
Modernize Your Drupal Development
Modernize Your Drupal DevelopmentModernize Your Drupal Development
Modernize Your Drupal DevelopmentChris Tankersley
 
Depolying Drupal with Git, Drush Make and Capistrano
Depolying Drupal with Git, Drush Make and CapistranoDepolying Drupal with Git, Drush Make and Capistrano
Depolying Drupal with Git, Drush Make and Capistranolibsys
 
drush_multi @ DrupalDevDays 2010
drush_multi @ DrupalDevDays 2010drush_multi @ DrupalDevDays 2010
drush_multi @ DrupalDevDays 2010Florian Latzel
 
Composer JSON kills make files
Composer JSON kills make filesComposer JSON kills make files
Composer JSON kills make filesropsu
 
DevOps: Cooking Drupal Deployment
DevOps: Cooking Drupal DeploymentDevOps: Cooking Drupal Deployment
DevOps: Cooking Drupal DeploymentGerald Villorente
 
Speed up Drupal development with Drush
Speed up Drupal development with DrushSpeed up Drupal development with Drush
Speed up Drupal development with Drushkbasarab
 

Ähnlich wie Drush&drupal. administration (20)

Drush and drupal. администрирование. Волчек Михаил
Drush and drupal. администрирование. Волчек МихаилDrush and drupal. администрирование. Волчек Михаил
Drush and drupal. администрирование. Волчек Михаил
 
Drush to simplify Drupalers work - Sivaji
Drush to simplify Drupalers work - SivajiDrush to simplify Drupalers work - Sivaji
Drush to simplify Drupalers work - Sivaji
 
Drush. Why should it be used?
Drush. Why should it be used?Drush. Why should it be used?
Drush. Why should it be used?
 
Sergei Stryukov.Drush.Why it should be used.DrupalCamp Kyiv 2011
Sergei Stryukov.Drush.Why it should be used.DrupalCamp Kyiv 2011Sergei Stryukov.Drush.Why it should be used.DrupalCamp Kyiv 2011
Sergei Stryukov.Drush.Why it should be used.DrupalCamp Kyiv 2011
 
Intro to Drush
Intro to DrushIntro to Drush
Intro to Drush
 
Intro to Drush
Intro to DrushIntro to Drush
Intro to Drush
 
Drush A beginners guide to a advanced tool.
Drush A beginners guide to a advanced tool.Drush A beginners guide to a advanced tool.
Drush A beginners guide to a advanced tool.
 
A Drush Primer - DrupalCamp Chattanooga 2013
A Drush Primer - DrupalCamp Chattanooga 2013A Drush Primer - DrupalCamp Chattanooga 2013
A Drush Primer - DrupalCamp Chattanooga 2013
 
Drush 5.0 (DrupalCamp LA 2012) - Chris Charlton
Drush 5.0 (DrupalCamp LA 2012) - Chris CharltonDrush 5.0 (DrupalCamp LA 2012) - Chris Charlton
Drush 5.0 (DrupalCamp LA 2012) - Chris Charlton
 
Hong Kong Drupal User Group - Introduction of Drush
Hong Kong Drupal User Group - Introduction of DrushHong Kong Drupal User Group - Introduction of Drush
Hong Kong Drupal User Group - Introduction of Drush
 
Drush workshop
Drush workshopDrush workshop
Drush workshop
 
How to Use the Command Line to Increase Speed of Development
How to Use the Command Line to Increase Speed of DevelopmentHow to Use the Command Line to Increase Speed of Development
How to Use the Command Line to Increase Speed of Development
 
Drush for drupal website builder
Drush for drupal website builderDrush for drupal website builder
Drush for drupal website builder
 
Modernize Your Drupal Development
Modernize Your Drupal DevelopmentModernize Your Drupal Development
Modernize Your Drupal Development
 
Depolying Drupal with Git, Drush Make and Capistrano
Depolying Drupal with Git, Drush Make and CapistranoDepolying Drupal with Git, Drush Make and Capistrano
Depolying Drupal with Git, Drush Make and Capistrano
 
drush_multi @ DrupalDevDays 2010
drush_multi @ DrupalDevDays 2010drush_multi @ DrupalDevDays 2010
drush_multi @ DrupalDevDays 2010
 
Composer JSON kills make files
Composer JSON kills make filesComposer JSON kills make files
Composer JSON kills make files
 
DevOps: Cooking Drupal Deployment
DevOps: Cooking Drupal DeploymentDevOps: Cooking Drupal Deployment
DevOps: Cooking Drupal Deployment
 
Speed up Drupal development with Drush
Speed up Drupal development with DrushSpeed up Drupal development with Drush
Speed up Drupal development with Drush
 
Beginning Drush
Beginning DrushBeginning Drush
Beginning Drush
 

Mehr von zabej

Map of tomorrow. Pecha kucha. 2019
Map of tomorrow. Pecha kucha. 2019Map of tomorrow. Pecha kucha. 2019
Map of tomorrow. Pecha kucha. 2019zabej
 
Data detox. Пазабаўляемся ад таксічных дадзеных
Data detox. Пазабаўляемся ад таксічных дадзеныхData detox. Пазабаўляемся ад таксічных дадзеных
Data detox. Пазабаўляемся ад таксічных дадзеныхzabej
 
Культура працы з git i github
Культура працы з git i githubКультура працы з git i github
Культура працы з git i githubzabej
 
Модуль прыёму ахвяраванняў Doika
Модуль прыёму ахвяраванняў DoikaМодуль прыёму ахвяраванняў Doika
Модуль прыёму ахвяраванняў Doikazabej
 
Donation module Doika
Donation module DoikaDonation module Doika
Donation module Doikazabej
 
Майстар-клас. Як стварыць лагатып?
Майстар-клас. Як стварыць лагатып?Майстар-клас. Як стварыць лагатып?
Майстар-клас. Як стварыць лагатып?zabej
 
Як эфектыўна працаваць з дызайнерам і скараціць час на дызайн?
Як эфектыўна працаваць з дызайнерам і скараціць час на дызайн?Як эфектыўна працаваць з дызайнерам і скараціць час на дызайн?
Як эфектыўна працаваць з дызайнерам і скараціць час на дызайн?zabej
 
Роль дизайнера в команде
Роль дизайнера в командеРоль дизайнера в команде
Роль дизайнера в командеzabej
 
Как получить дизайн, который понравиться организации?
Как получить дизайн, который понравиться организации?Как получить дизайн, который понравиться организации?
Как получить дизайн, который понравиться организации?zabej
 
Адкрытыя бізнэс-мадэлі на аснове лічбавага агульнага
Адкрытыя бізнэс-мадэлі на аснове лічбавага агульнагаАдкрытыя бізнэс-мадэлі на аснове лічбавага агульнага
Адкрытыя бізнэс-мадэлі на аснове лічбавага агульнагаzabej
 
Commonification Sharing and Creative Commons. Alexandros Nousias
Commonification Sharing and Creative Commons. Alexandros Nousias Commonification Sharing and Creative Commons. Alexandros Nousias
Commonification Sharing and Creative Commons. Alexandros Nousias zabej
 
Вікі-летнік 2017. Прэзентацыя ідэі
Вікі-летнік 2017. Прэзентацыя ідэіВікі-летнік 2017. Прэзентацыя ідэі
Вікі-летнік 2017. Прэзентацыя ідэіzabej
 
Гісторыя Творчых Суполак і планы на 2017 год
Гісторыя Творчых Суполак і планы на 2017 годГісторыя Творчых Суполак і планы на 2017 год
Гісторыя Творчых Суполак і планы на 2017 годzabej
 
Творчыя суполкі. 2014-2016
Творчыя суполкі. 2014-2016Творчыя суполкі. 2014-2016
Творчыя суполкі. 2014-2016zabej
 
Лічбавая Майстэрня. V.1.1
Лічбавая Майстэрня. V.1.1Лічбавая Майстэрня. V.1.1
Лічбавая Майстэрня. V.1.1zabej
 
Лічбавая Майстэрня
Лічбавая МайстэрняЛічбавая Майстэрня
Лічбавая Майстэрняzabej
 
Прэзентацыя вікідапаможніка, верасень, 2015
Прэзентацыя вікідапаможніка, верасень, 2015Прэзентацыя вікідапаможніка, верасень, 2015
Прэзентацыя вікідапаможніка, верасень, 2015zabej
 
Вікі-дапаможнік. Кіруй ведамі
Вікі-дапаможнік. Кіруй ведаміВікі-дапаможнік. Кіруй ведамі
Вікі-дапаможнік. Кіруй ведаміzabej
 
Электронное участие
Электронное участиеЭлектронное участие
Электронное участиеzabej
 
Falanster. Presentation of activity. 2015
Falanster. Presentation of activity. 2015Falanster. Presentation of activity. 2015
Falanster. Presentation of activity. 2015zabej
 

Mehr von zabej (20)

Map of tomorrow. Pecha kucha. 2019
Map of tomorrow. Pecha kucha. 2019Map of tomorrow. Pecha kucha. 2019
Map of tomorrow. Pecha kucha. 2019
 
Data detox. Пазабаўляемся ад таксічных дадзеных
Data detox. Пазабаўляемся ад таксічных дадзеныхData detox. Пазабаўляемся ад таксічных дадзеных
Data detox. Пазабаўляемся ад таксічных дадзеных
 
Культура працы з git i github
Культура працы з git i githubКультура працы з git i github
Культура працы з git i github
 
Модуль прыёму ахвяраванняў Doika
Модуль прыёму ахвяраванняў DoikaМодуль прыёму ахвяраванняў Doika
Модуль прыёму ахвяраванняў Doika
 
Donation module Doika
Donation module DoikaDonation module Doika
Donation module Doika
 
Майстар-клас. Як стварыць лагатып?
Майстар-клас. Як стварыць лагатып?Майстар-клас. Як стварыць лагатып?
Майстар-клас. Як стварыць лагатып?
 
Як эфектыўна працаваць з дызайнерам і скараціць час на дызайн?
Як эфектыўна працаваць з дызайнерам і скараціць час на дызайн?Як эфектыўна працаваць з дызайнерам і скараціць час на дызайн?
Як эфектыўна працаваць з дызайнерам і скараціць час на дызайн?
 
Роль дизайнера в команде
Роль дизайнера в командеРоль дизайнера в команде
Роль дизайнера в команде
 
Как получить дизайн, который понравиться организации?
Как получить дизайн, который понравиться организации?Как получить дизайн, который понравиться организации?
Как получить дизайн, который понравиться организации?
 
Адкрытыя бізнэс-мадэлі на аснове лічбавага агульнага
Адкрытыя бізнэс-мадэлі на аснове лічбавага агульнагаАдкрытыя бізнэс-мадэлі на аснове лічбавага агульнага
Адкрытыя бізнэс-мадэлі на аснове лічбавага агульнага
 
Commonification Sharing and Creative Commons. Alexandros Nousias
Commonification Sharing and Creative Commons. Alexandros Nousias Commonification Sharing and Creative Commons. Alexandros Nousias
Commonification Sharing and Creative Commons. Alexandros Nousias
 
Вікі-летнік 2017. Прэзентацыя ідэі
Вікі-летнік 2017. Прэзентацыя ідэіВікі-летнік 2017. Прэзентацыя ідэі
Вікі-летнік 2017. Прэзентацыя ідэі
 
Гісторыя Творчых Суполак і планы на 2017 год
Гісторыя Творчых Суполак і планы на 2017 годГісторыя Творчых Суполак і планы на 2017 год
Гісторыя Творчых Суполак і планы на 2017 год
 
Творчыя суполкі. 2014-2016
Творчыя суполкі. 2014-2016Творчыя суполкі. 2014-2016
Творчыя суполкі. 2014-2016
 
Лічбавая Майстэрня. V.1.1
Лічбавая Майстэрня. V.1.1Лічбавая Майстэрня. V.1.1
Лічбавая Майстэрня. V.1.1
 
Лічбавая Майстэрня
Лічбавая МайстэрняЛічбавая Майстэрня
Лічбавая Майстэрня
 
Прэзентацыя вікідапаможніка, верасень, 2015
Прэзентацыя вікідапаможніка, верасень, 2015Прэзентацыя вікідапаможніка, верасень, 2015
Прэзентацыя вікідапаможніка, верасень, 2015
 
Вікі-дапаможнік. Кіруй ведамі
Вікі-дапаможнік. Кіруй ведаміВікі-дапаможнік. Кіруй ведамі
Вікі-дапаможнік. Кіруй ведамі
 
Электронное участие
Электронное участиеЭлектронное участие
Электронное участие
 
Falanster. Presentation of activity. 2015
Falanster. Presentation of activity. 2015Falanster. Presentation of activity. 2015
Falanster. Presentation of activity. 2015
 

Kürzlich hochgeladen

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 

Kürzlich hochgeladen (20)

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 

Drush&drupal. administration

  • 1. Drush and Drupal. Administration Michael Volchek Web-developer Drupal-club (Belarus) twitter: mikhail_volchek drupal-sliot.by
  • 2. For whom? • Who wants to implement current updates rapidly • Who doesn’t like to do the same actions again and again • Who chooses Linux hosting • Who likes shell (drupal+shell=drush) • And it is comfortable for local developing (deployment, supporting, migration, backup)
  • 3. Basic Commands • Drush <host> status • Drush dl <project_1> < project_2> < project_3> • the same with drush en/dis/pm-uninstall • Drush cc [all|menu|css-js…] • Drush help <some_command> • etc
  • 4. Coworking Drush and Linux • For example: • drush dis pathauto && drush pm-uninstall pathauto && rm –rf pathauto • drush dl omega_tools && drush en omega_tools –y • drush pm-list | grep omega
  • 5. New Modules - New Commands • For example: • drush omega-subtheme "Test theme" html5 --machine_name=test_theme && drush en test_theme -y && drush pm-list | grep test_theme
  • 6. Install Drupal • Prepare database (mysql>create database <DB_name>;) • Use one drush command site-install (or alias si) • drush si standard --db- url=mysql://<DB_user>:<passwd>@<DB_host>/<DB_n ame> --db-su=<admin> -db-su-pw=<some_password> --site-name=‘Dev Site!’
  • 7. Recover user’s password or how to crack Drupal users Use •drush uli -l http://<somehost> or •drush upwd <user> --password=<password>
  • 8. Minor Drupal Updating 7.10 to 7.14 •!Backup! Project DataBase and Files /.htaccess and robots.txt •Move from project all custom files/folders •Switch on update module •drush upc / up -y •Wait for a moment •That’s all •It takes you about 5 minutes •Use the same command for contrib modules UPD
  • 9. Major updating… faced with • Contributed module developing (for example: /project/photos – last update - 2009-Dec-30) • But it needs to migrate about 150 albums and 6000 photos • If you still hardcode (or hook) contributed modules • Need to rewrite custom themes/modules and migration scripts
  • 10. Drush Updating • /usr/local/share/drush • cd /usr/local/share/ • drush dl drush --destination=. • and use drush cc drush (clear drush cache)
  • 11. qd command • ready Drupal profile • Sqlite issue • Server settings (ports, proxy) • Why to do it?
  • 12. Alias • $aliases['dev'] = array('root' => '/path/to/drupal', 'uri' => 'dev.mydrupalsite.com', ); • drush @dev status • $ drush --root=/path/to/drupal --uri=dev.mydrupalsite.com status
  • 13. Git + cron + drush • GitHub.com is our basic repo • Use script files (*.sh) • Use git command (for example: git pull) there • Use drush command there (sql-dump or cc all) • And cron schedule (crontab -e)
  • 14. Git + cron + drush
  • 15. Drush in windows • Windows installer from 5.x version • To install with online connection (required pecl library) • Additional mysql software tuning (for example drush sql- dump)
  • 16. Drush Hardships • To start using it. For window’s and click-mouse funs it may be a psychological issue • That's not the game for share hosting • More flexible and usable in Linux platform. • At the beginning you need to learn a list of popular commands. U can print it and stick to wall. • Update modules issue in distributives (for example, OpenAtrium)
  • 17. Conclusion • Use open source software • Commands shell – more health-given for your fingers =) • It saves your time!
  • 18. Useful links • drush.ws - documentation • http://igusev.ru/drupal/omega/omega-drush-subtheme-creation - use with omega • http://www.summasolutions.net/blogposts/implementing-drush-commands - write your own commands • http://civicactions.com/team/owen_barton - interesting screencasts
  • 19. Thanks Michael Volchek Drupal Club (Belarus) skype: fannrmus twitter: mikhail_volchek