SlideShare une entreprise Scribd logo
1  sur  22
Télécharger pour lire hors ligne
FACE YOUR FEARS:
      DRUSH AND ÆGIR



Iztok Smolič | @iztok | iztok@etelje.com | iztoksmolic.com
Proud member of Drupal Slovenia
Why would designer/themer/site-
  builder want to use tools for
      hardcore developers?
Still using FTP?
Drush
Must have for all site builders
What is drush?
! Drush is a command line shell and scripting interface
  for Drupal

!   Controlling your Drupal site outside of the browser,
    from a terminal, (shell, command line, …)

!   Can be used without Ægir

! Drush can be used on your local machine (works on
  Win, OSX and Linux)

!   http://drupal.org/project/drush
Did you say
command line?
Basics commands (UNIX)
!   List folder’s content: ls

!   Go to folder: cd [path], go one folder back: cd ..

!   New folder: mkdir [folder_name]

!   Rename file/folder: mv [file_name] [new_name]

!   Copy: cp [source] [destination] (cp –r for folders)

!   Remove: rm [file], rm –r [folder]

!   Show current folder path: pwd
Installing on a local computer

!   Works best on Mac and Linux OS
!   Works on Win, but limited
    !   Running Linux inside virtual machine may be
        the best alternative
Basic, useful drush commands
!   Download project from D.org: drush dl [name]
!   Enable module: drush en [name]
    !   Enable by name matches: drush en name_*
!   Update everything: drush up
    !   Update specific project: drush up [name]
!   Clear cache: drush cc
    !   Clear all cache: drush cc all
!   Get a list of commands: drush
!   More here: http://drush.ws/help
Use cases and examples
!   Site has a broken theme function and you can’t navigate to
    the performance page to clear the cache!
  !   solution: drush cc all

!   You need to update the site over FTP.
  !   much easier and faster: drush up

!   You download views and before enabling it you find out that
    module ctools is needed!
  !   drush dl views,
      drush en views_ui
      it will download and enable all dependencies modules
Help and tips
! Drush documentation:
  http://www.drush.ws/

!   commands: drush –help

! groups.drupal.org/drush

! drush cheatsheet: http://www.scribd.com/doc/57989208/
  Drush-4-Cheat-Sheet

!   Check if you favorite module implemented drush support
  !   features
  ! backup_migrate
Ægir
Host your sites in style
What is Ægir?
!   Hosting system for managing Drupal sites

!   It is basicaly a Drupal site with which you can control all of
    your hosted sites

!   You can run tasks like:
   !   Create, disable, delete sites
   !   Backup site, restore backups
   !   Migrate (update) sites
Installation
!   Ægir is only a set of modules:
   ! Hostmaster (http://drupal.org/project/provision)
   ! Drush (http://drupal.org/project/drush)
   !   Provision (http://drupal.org/project/provision)
   ! Eldir Theme

!   Installation:
   !   http://community.aegirproject.org/installing
   !   apt-get install aegir

!   Hosted solutions like omega8.cc and Koumbit
Documentation
!   Homepage:
    http://aegirproject.org

!   Discussion and support:
    http://community.aegirproject.org/discussion
    IRC: #aegir @ irc.freenode.net
Aegir
structure
Server
Additional to localhost we can
have multiple servers controlled
by one Ægir instance
Platform
Drupal core or distribution
located on a server.
Site
Instance of one site inside a
platform. Regular multisite
structure.
Multisite
structure




            Modules and
            themes from
            directory “all”
            are available
            by all modules
Tips
!   Updating site’s core with migrate task
    !   example: create new platform Drupal 7.2 and
        migrate from D 7.0 to D 7.2 platform
    !   works for major versions migrations too (Ægir also
        checks if modules are available for destination
        version)

!   Clone site and perform module updates (you keep the
    production site safe)
Host distributions!
Distributions are Drupal’s packaged profiles for specific use.

! Acquia 6 & 7              ! OpenPublic
! OpenAtrium                ! ManagingNews
!   Drupal Commons          !   COD

! OpenScholar               !   Open Enterprise



Make you own “distributions” with favorite modules or even
installation profile.
Advance use
!   Host sites on multiple servers – control with one Ægir
    instance

!   Using Ægir in deployment workflow best practice:
    (http://greenbeedigital.com.au/content/drupal-
    deployments-workflows-version-control-drushmake-and-
    aegir)
    using platform for one site, versioned

!   Allowing clients to manage own sites – making a real hosting
    platform
!   Expand:
    http://community.aegirproject.org/contrib-modules
Demo Time
Get yours at http://omega8.cc/contact/Demo

Contenu connexe

Tendances

Tendances (20)

Drupal local development with lando
Drupal local development with landoDrupal local development with lando
Drupal local development with lando
 
Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...
Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...
Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...
 
Mobile drupal
Mobile drupalMobile drupal
Mobile drupal
 
Drush make - Install Drupal like a Pro
Drush make - Install Drupal like a ProDrush make - Install Drupal like a Pro
Drush make - Install Drupal like a Pro
 
Hugo - Introduction
Hugo - IntroductionHugo - Introduction
Hugo - Introduction
 
Installing and Setting Up WordPress
Installing and Setting Up WordPressInstalling and Setting Up WordPress
Installing and Setting Up WordPress
 
How to Develop Drupal Website
How to Develop Drupal WebsiteHow to Develop Drupal Website
How to Develop Drupal Website
 
Drupal 7 training
Drupal 7 trainingDrupal 7 training
Drupal 7 training
 
Configuration Kits - DrupalCamp NYC 2021
Configuration Kits - DrupalCamp NYC 2021Configuration Kits - DrupalCamp NYC 2021
Configuration Kits - DrupalCamp NYC 2021
 
Juju presentation
Juju presentationJuju presentation
Juju presentation
 
Drupal - Blocks vs Context vs Panels
Drupal - Blocks vs Context vs PanelsDrupal - Blocks vs Context vs Panels
Drupal - Blocks vs Context vs Panels
 
Optimizing Drupal Performance. Tips and Tricks
Optimizing Drupal Performance. Tips and TricksOptimizing Drupal Performance. Tips and Tricks
Optimizing Drupal Performance. Tips and Tricks
 
Juju, LXC, OpenStack: Fun with Private Clouds
Juju, LXC, OpenStack: Fun with Private CloudsJuju, LXC, OpenStack: Fun with Private Clouds
Juju, LXC, OpenStack: Fun with Private Clouds
 
Show & tell - Who is Hugo?
Show & tell - Who is Hugo?Show & tell - Who is Hugo?
Show & tell - Who is Hugo?
 
Optimizing Drupal Performance (English)
Optimizing Drupal Performance (English)Optimizing Drupal Performance (English)
Optimizing Drupal Performance (English)
 
COMO CRIAR O TEU STARTUP PROJECT E SETUP DO TEU AMBIENTE DE DESENVOLVIMENTO D...
COMO CRIAR O TEU STARTUP PROJECT E SETUP DO TEU AMBIENTE DE DESENVOLVIMENTO D...COMO CRIAR O TEU STARTUP PROJECT E SETUP DO TEU AMBIENTE DE DESENVOLVIMENTO D...
COMO CRIAR O TEU STARTUP PROJECT E SETUP DO TEU AMBIENTE DE DESENVOLVIMENTO D...
 
TDC2016SP - Trilha DevOps Java
TDC2016SP - Trilha DevOps JavaTDC2016SP - Trilha DevOps Java
TDC2016SP - Trilha DevOps Java
 
Bootstrap vs. Skeleton
Bootstrap vs. SkeletonBootstrap vs. Skeleton
Bootstrap vs. Skeleton
 
Static Websites - The Final Frontier
Static Websites - The Final FrontierStatic Websites - The Final Frontier
Static Websites - The Final Frontier
 
HyperDB, MySQL Performance, & Flavors of MySQL
HyperDB, MySQL Performance, & Flavors of MySQLHyperDB, MySQL Performance, & Flavors of MySQL
HyperDB, MySQL Performance, & Flavors of MySQL
 

Similaire à Face your fears: Drush and Aegir

5 Important Tools for Drupal Development
5 Important Tools for Drupal Development5 Important Tools for Drupal Development
5 Important Tools for Drupal Development
jcarrig
 
Modernize Your Drupal Development
Modernize Your Drupal DevelopmentModernize Your Drupal Development
Modernize Your Drupal Development
Chris Tankersley
 
LuisRodriguezLocalDevEnvironmentsDrupalOpenDays
LuisRodriguezLocalDevEnvironmentsDrupalOpenDaysLuisRodriguezLocalDevEnvironmentsDrupalOpenDays
LuisRodriguezLocalDevEnvironmentsDrupalOpenDays
Luis Rodríguez Castromil
 
Drupal theming training
Drupal theming trainingDrupal theming training
Drupal theming training
dropsolid
 
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
 

Similaire à Face your fears: Drush and Aegir (20)

A Drush Primer - DrupalCamp Chattanooga 2013
A Drush Primer - DrupalCamp Chattanooga 2013A Drush Primer - DrupalCamp Chattanooga 2013
A Drush Primer - DrupalCamp Chattanooga 2013
 
Improving your Drupal 8 development workflow DrupalCampLA
Improving your Drupal 8 development workflow DrupalCampLAImproving your Drupal 8 development workflow DrupalCampLA
Improving your Drupal 8 development workflow DrupalCampLA
 
DevOps: Cooking Drupal Deployment
DevOps: Cooking Drupal DeploymentDevOps: Cooking Drupal Deployment
DevOps: Cooking Drupal Deployment
 
Help! I inherited a Drupal Site! - DrupalCamp Atlanta 2016
Help! I inherited a Drupal Site! - DrupalCamp Atlanta 2016Help! I inherited a Drupal Site! - DrupalCamp Atlanta 2016
Help! I inherited a Drupal Site! - DrupalCamp Atlanta 2016
 
Docman - The swiss army knife for Drupal multisite docroot management and dep...
Docman - The swiss army knife for Drupal multisite docroot management and dep...Docman - The swiss army knife for Drupal multisite docroot management and dep...
Docman - The swiss army knife for Drupal multisite docroot management and dep...
 
Drupal 8 improvements for developer productivity php symfony and more
Drupal 8 improvements for developer productivity  php symfony and moreDrupal 8 improvements for developer productivity  php symfony and more
Drupal 8 improvements for developer productivity php symfony and more
 
5 Important Tools for Drupal Development
5 Important Tools for Drupal Development5 Important Tools for Drupal Development
5 Important Tools for Drupal Development
 
Modernize Your Drupal Development
Modernize Your Drupal DevelopmentModernize Your Drupal Development
Modernize Your Drupal Development
 
Drupal Now! - Introduction to Drupal
Drupal Now! - Introduction to DrupalDrupal Now! - Introduction to Drupal
Drupal Now! - Introduction to Drupal
 
Aegir Fresno Drupal User Group 1-21-10
Aegir Fresno Drupal User Group 1-21-10Aegir Fresno Drupal User Group 1-21-10
Aegir Fresno Drupal User Group 1-21-10
 
AEgir Overview - Florida Drupal Camp 2011
AEgir Overview - Florida Drupal Camp 2011AEgir Overview - Florida Drupal Camp 2011
AEgir Overview - Florida Drupal Camp 2011
 
Introduction to Drupal - Installation, Anatomy, Terminologies
Introduction to Drupal - Installation, Anatomy, TerminologiesIntroduction to Drupal - Installation, Anatomy, Terminologies
Introduction to Drupal - Installation, Anatomy, Terminologies
 
Drupal 8 - Improving your development workflow
Drupal 8 - Improving your development workflowDrupal 8 - Improving your development workflow
Drupal 8 - Improving your development workflow
 
LuisRodriguezLocalDevEnvironmentsDrupalOpenDays
LuisRodriguezLocalDevEnvironmentsDrupalOpenDaysLuisRodriguezLocalDevEnvironmentsDrupalOpenDays
LuisRodriguezLocalDevEnvironmentsDrupalOpenDays
 
Drupal theming training
Drupal theming trainingDrupal theming training
Drupal theming training
 
Drupal in-depth
Drupal in-depthDrupal in-depth
Drupal in-depth
 
Drush. Why should it be used?
Drush. Why should it be used?Drush. Why should it be used?
Drush. Why should it be used?
 
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
 
Lean Drupal Repositories with Composer and Drush
Lean Drupal Repositories with Composer and DrushLean Drupal Repositories with Composer and Drush
Lean Drupal Repositories with Composer and Drush
 
Drupal distribution
Drupal distributionDrupal distribution
Drupal distribution
 

Plus de Iztok Smolic

Plus de Iztok Smolic (6)

Drupal Commerce 2 for Drupal 8 - Drupal camp Antwerp 2017
Drupal Commerce 2 for Drupal 8 - Drupal camp Antwerp 2017Drupal Commerce 2 for Drupal 8 - Drupal camp Antwerp 2017
Drupal Commerce 2 for Drupal 8 - Drupal camp Antwerp 2017
 
Drupal commerce 2.x for Drupal 8
Drupal commerce 2.x for Drupal 8Drupal commerce 2.x for Drupal 8
Drupal commerce 2.x for Drupal 8
 
Drupal 8: Most common beginner mistakes
Drupal 8: Most common beginner mistakesDrupal 8: Most common beginner mistakes
Drupal 8: Most common beginner mistakes
 
Drupal 8, tricks and tips learned from the first 6 months
Drupal 8, tricks and tips learned from the first 6 monthsDrupal 8, tricks and tips learned from the first 6 months
Drupal 8, tricks and tips learned from the first 6 months
 
Drupal as a lean startup platform
Drupal as a lean startup platformDrupal as a lean startup platform
Drupal as a lean startup platform
 
Top 20 Drupal Mistakes newbies make
Top 20 Drupal Mistakes newbies makeTop 20 Drupal Mistakes newbies make
Top 20 Drupal Mistakes newbies make
 

Dernier

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Dernier (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 

Face your fears: Drush and Aegir

  • 1. FACE YOUR FEARS: DRUSH AND ÆGIR Iztok Smolič | @iztok | iztok@etelje.com | iztoksmolic.com
  • 2. Proud member of Drupal Slovenia
  • 3. Why would designer/themer/site- builder want to use tools for hardcore developers?
  • 5. Drush Must have for all site builders
  • 6. What is drush? ! Drush is a command line shell and scripting interface for Drupal !   Controlling your Drupal site outside of the browser, from a terminal, (shell, command line, …) !   Can be used without Ægir ! Drush can be used on your local machine (works on Win, OSX and Linux) !   http://drupal.org/project/drush
  • 8. Basics commands (UNIX) !   List folder’s content: ls !   Go to folder: cd [path], go one folder back: cd .. !   New folder: mkdir [folder_name] !   Rename file/folder: mv [file_name] [new_name] !   Copy: cp [source] [destination] (cp –r for folders) !   Remove: rm [file], rm –r [folder] !   Show current folder path: pwd
  • 9. Installing on a local computer !   Works best on Mac and Linux OS !   Works on Win, but limited !   Running Linux inside virtual machine may be the best alternative
  • 10. Basic, useful drush commands !   Download project from D.org: drush dl [name] !   Enable module: drush en [name] !   Enable by name matches: drush en name_* !   Update everything: drush up !   Update specific project: drush up [name] !   Clear cache: drush cc !   Clear all cache: drush cc all !   Get a list of commands: drush !   More here: http://drush.ws/help
  • 11. Use cases and examples !   Site has a broken theme function and you can’t navigate to the performance page to clear the cache! !   solution: drush cc all !   You need to update the site over FTP. !   much easier and faster: drush up !   You download views and before enabling it you find out that module ctools is needed! ! drush dl views, drush en views_ui it will download and enable all dependencies modules
  • 12. Help and tips ! Drush documentation: http://www.drush.ws/ !   commands: drush –help ! groups.drupal.org/drush ! drush cheatsheet: http://www.scribd.com/doc/57989208/ Drush-4-Cheat-Sheet !   Check if you favorite module implemented drush support !   features ! backup_migrate
  • 14. What is Ægir? !   Hosting system for managing Drupal sites !   It is basicaly a Drupal site with which you can control all of your hosted sites !   You can run tasks like: !   Create, disable, delete sites !   Backup site, restore backups !   Migrate (update) sites
  • 15. Installation !   Ægir is only a set of modules: ! Hostmaster (http://drupal.org/project/provision) ! Drush (http://drupal.org/project/drush) !   Provision (http://drupal.org/project/provision) ! Eldir Theme !   Installation: !   http://community.aegirproject.org/installing !   apt-get install aegir !   Hosted solutions like omega8.cc and Koumbit
  • 16. Documentation !   Homepage: http://aegirproject.org !   Discussion and support: http://community.aegirproject.org/discussion IRC: #aegir @ irc.freenode.net
  • 17. Aegir structure Server Additional to localhost we can have multiple servers controlled by one Ægir instance Platform Drupal core or distribution located on a server. Site Instance of one site inside a platform. Regular multisite structure.
  • 18. Multisite structure Modules and themes from directory “all” are available by all modules
  • 19. Tips !   Updating site’s core with migrate task !   example: create new platform Drupal 7.2 and migrate from D 7.0 to D 7.2 platform !   works for major versions migrations too (Ægir also checks if modules are available for destination version) !   Clone site and perform module updates (you keep the production site safe)
  • 20. Host distributions! Distributions are Drupal’s packaged profiles for specific use. ! Acquia 6 & 7 ! OpenPublic ! OpenAtrium ! ManagingNews !   Drupal Commons !   COD ! OpenScholar !   Open Enterprise Make you own “distributions” with favorite modules or even installation profile.
  • 21. Advance use !   Host sites on multiple servers – control with one Ægir instance !   Using Ægir in deployment workflow best practice: (http://greenbeedigital.com.au/content/drupal- deployments-workflows-version-control-drushmake-and- aegir) using platform for one site, versioned !   Allowing clients to manage own sites – making a real hosting platform !   Expand: http://community.aegirproject.org/contrib-modules
  • 22. Demo Time Get yours at http://omega8.cc/contact/Demo