SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Tendances

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
 

Tendances (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
 

Similaire à 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
 

Similaire à 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
 

Plus de 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
 

Plus de 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
 

Dernier

DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 

Dernier (20)

DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.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