Post on 26-May-2015
transcript
Lightning fast site building with Aegir (and Drush)
Drupal Roadshow in Klagenfurt
Iztok Smolič | @iztok | iztok@etelje.com | iztoksmolic.com
Get the presentation from Berlin on Slideshare:
http://slidesha.re/k4aY6v
t: @iztok w: iztoksmolic.com
About
* only user of Drush and Aegir – not involved in development
Drupal developer and designer
Co-founder of ETELJE, Drupal design & development shop
Organizing Drupal events in Slovenia
Drupal Slovenia has ~20 active members
t: @iztok w: iztoksmolic.com
ÆgirHost your sites with style
t: @iztok w: iztoksmolic.com
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
t: @iztok w: iztoksmolic.com
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
Discussion and support:http://community.aegirproject.org/discussionIRC: #aegir @ irc.freenode.net
t: @iztok w: iztoksmolic.com
Aegirstructure
var
aegir
platforms
drupal-6.22
drupal-7.2
ServerAdditional to localhost we can have multiple servers controlled by one Ægir instance
PlatformDrupal core or distribution located on a server.
SiteInstance of one site inside a platform. Regular multisite structure.
t: @iztok w: iztoksmolic.com
Platform(e.g. Drupal
7.2)
sites
default all
modules
themes
libraries
domainA.com
modules
themes
domainB.com
modules
themes
libraries
modules themes
Multisitestructure
Modules andthemes fromdirectory “all”are availableby all sites in the platform
t: @iztok w: iztoksmolic.com
Tips
Updating site’s core with migrate taskexample: create new platform Drupal 7.2 and migrate from D 7.0 to D 7.2 platformworks 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)
t: @iztok w: iztoksmolic.com
Host distributions!Distributions are Drupal’s packaged profiles for specific use.
Acquia 6 & 7
OpenAtrium
Drupal Commons
OpenScholar
OpenPublic
ManagingNews
COD
Open Enterprise
Make you own “distributions” with favorite modules or even installation profile.
t: @iztok w: iztoksmolic.com
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
t: @iztok w: iztoksmolic.com
DrushMust have for all site builders
t: @iztok w: iztoksmolic.com
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
t: @iztok w: iztoksmolic.com
Use cases and examplesSite has a broken theme function and you can’t even navigate to the performance page to clear the cache!
solution: drush cc all
You need to update the sites’ modules and themes.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
You forgot the admin password:drush uli
t: @iztok w: iztoksmolic.com
Demo TimeGet yours at http://omega8.cc/contact/Demo
t: @iztok w: iztoksmolic.com
?email me: iztok@etelje.com
tweet: @iztok