SlideShare a Scribd company logo
1 of 15
Download to read offline
“Fare Drupal da linea di comando”


Cos'è Drupal?
Cos'è Drush?
- Drush: come si installa
- Drush Make: come si installa
- Installazione Drupal con Drush e Makefile
- Installazione e abilitazione moduli
- Disabilitazione e disinstallazione moduli
- Aggiornamento moduli
- Backup e Restore Sito

$incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′   20/02/2012
“Fare Drupal da linea di comando”


  Cos'è Drupal?

    Quanti di voi lo conoscono?




$incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′   20/02/2012
“Fare Drupal da linea di comando”


  Cos'è Drupal?
          >_ CMS opensource

                     >_ php

                    >_ CMF




$incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′   20/02/2012
“Fare Drupal da linea di comando”


  Attenzione!

                         :                            =     : geek




$incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′      20/02/2012
“Fare Drupal da linea di comando”


  Cos'è Drush?
   >_ Drush = Drupal + Shell

   >_ ls /drush/features
   Download          Enable                                 Disable
   Uninstall         Update

   >_ ls /drush/drupal_components
   Modules           Profiles                               Themes
   Translation      Core

$incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′             20/02/2012
“Fare Drupal da linea di comando”


Drush: come si installa
  >_ cd $HOME

  >_ wget http://ftp.drupal.org/files/projects/drush-7.x-4.5.tar.gz

  >_ tar xzf drush-7.x-4.5.tar.gz

  >_ cd /usr/local/bin

  >_ ln -s /path/to/drush drush

  >_ drush status


$incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′   20/02/2012
“Fare Drupal da linea di comando”


Drush Make: come si installa

>_ mkdir $HOME/.drush && cd $HOME/.drush

>_ wget http://ftp.drupal.org/files/projects/drush_make-6.x-2.3.tar.gz

>_ tar xzf drush_make-6.x-2.3.tar.gz




$incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′    20/02/2012
“Fare Drupal da linea di comando”


Installazione Drupal con Drush
e Makefile (versione semplice)

                     http://drushmake.me/

   >_ drush make pugbo.make pugbo

   >_ drush si standard --site-name="Drupal 7 PugBO" 
   --db-url=mysql://root:root@localhost/testpugbo


$incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′   20/02/2012
“Fare Drupal da linea di comando”


Installazione e abilitazione moduli

   >_ drush dl token && drush en token ecc ecc



                                                     Oppure

   >_ drush dl token --select



$incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′     20/02/2012
“Fare Drupal da linea di comando”


Disabilitazione e disinstallazione moduli

   >_ drush dis token

   >_ drush pm-uninstall token




$incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′   20/02/2012
“Fare Drupal da linea di comando”


Aggiornamento moduli

   >_ drush up




$incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′   20/02/2012
“Fare Drupal da linea di comando”


Backup Sito

   >_ drush archive-dump default




$incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′   20/02/2012
“Fare Drupal da linea di comando”


Restore Sito

  >_ drush archive-restore ./m29511d1.20120208_095943.tar.gz 

  --destination=/home/darthdrupal/www/dinamicamente 

  --db-url=mysql://root:root@localhost/dinamicamente




$incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′   20/02/2012
“Fare Drupal da linea di comando”


the end
   >_ thanks




                       Luca D'Amico                         Mirko Marraro
                       @menteora                            @DarthDrupal




$incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′              20/02/2012
“Fare Drupal da linea di comando”



A breve le slide su...


  www.dinamicamente.org
  @dinamicamente




$incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′   20/02/2012

More Related Content

Similar to Fare Drupal a linea di Comando

Sviluppare plugin per WordPress: Best Practice e Silver Bullet
Sviluppare plugin per WordPress: Best Practice e Silver BulletSviluppare plugin per WordPress: Best Practice e Silver Bullet
Sviluppare plugin per WordPress: Best Practice e Silver Bullet
Luca Bartoli
 

Similar to Fare Drupal a linea di Comando (20)

Drush make vs composer
 Drush make vs composer Drush make vs composer
Drush make vs composer
 
Drush make vs composer
Drush make vs composer Drush make vs composer
Drush make vs composer
 
Come portare il profiler di symfony2 in drupal8
Come portare il profiler di symfony2 in drupal8Come portare il profiler di symfony2 in drupal8
Come portare il profiler di symfony2 in drupal8
 
Idp, passo dopo passo!
Idp, passo dopo passo!Idp, passo dopo passo!
Idp, passo dopo passo!
 
DrupalGap: crea una app Android (ed iOS) con Drupal, Drupalgap ed Apache Cordova
DrupalGap: crea una app Android (ed iOS) con Drupal, Drupalgap ed Apache CordovaDrupalGap: crea una app Android (ed iOS) con Drupal, Drupalgap ed Apache Cordova
DrupalGap: crea una app Android (ed iOS) con Drupal, Drupalgap ed Apache Cordova
 
Bootstrap 3.0 - Introduzione
Bootstrap 3.0 - IntroduzioneBootstrap 3.0 - Introduzione
Bootstrap 3.0 - Introduzione
 
Drupal - per chi vuole iniziare
Drupal - per chi vuole iniziareDrupal - per chi vuole iniziare
Drupal - per chi vuole iniziare
 
Slide sessione Drupal Theming & CSS Framework – Drupal Camp Torino 2010
Slide sessione Drupal Theming & CSS Framework – Drupal Camp Torino 2010Slide sessione Drupal Theming & CSS Framework – Drupal Camp Torino 2010
Slide sessione Drupal Theming & CSS Framework – Drupal Camp Torino 2010
 
Sviluppare plugin per WordPress: Best Practice e Silver Bullet
Sviluppare plugin per WordPress: Best Practice e Silver BulletSviluppare plugin per WordPress: Best Practice e Silver Bullet
Sviluppare plugin per WordPress: Best Practice e Silver Bullet
 
Html5 - Un anno dopo
Html5 - Un anno dopoHtml5 - Un anno dopo
Html5 - Un anno dopo
 
Drupal 7 : theming avanzato
Drupal 7 : theming avanzatoDrupal 7 : theming avanzato
Drupal 7 : theming avanzato
 
Livin' with Docker - dallo sviluppo alla produzione
Livin' with Docker - dallo sviluppo alla produzioneLivin' with Docker - dallo sviluppo alla produzione
Livin' with Docker - dallo sviluppo alla produzione
 
Come Drupal costruisce le tue pagine
Come Drupal costruisce le tue pagineCome Drupal costruisce le tue pagine
Come Drupal costruisce le tue pagine
 
Drupal 10: un framework PHP di sviluppo Cloud Native moderno
Drupal 10: un framework PHP di sviluppo Cloud Native modernoDrupal 10: un framework PHP di sviluppo Cloud Native moderno
Drupal 10: un framework PHP di sviluppo Cloud Native moderno
 
Smau padova 2013 gianfranco tonello
Smau padova 2013 gianfranco tonelloSmau padova 2013 gianfranco tonello
Smau padova 2013 gianfranco tonello
 
Con Aruba, a lezione di Cloud #lezione 30 - parte 2: 'GitLab e Cloud Server ...
Con Aruba, a lezione di Cloud  #lezione 30 - parte 2: 'GitLab e Cloud Server ...Con Aruba, a lezione di Cloud  #lezione 30 - parte 2: 'GitLab e Cloud Server ...
Con Aruba, a lezione di Cloud #lezione 30 - parte 2: 'GitLab e Cloud Server ...
 
Command Terminal Linux
Command Terminal LinuxCommand Terminal Linux
Command Terminal Linux
 
Grunt: automazione per sviluppatori “pigri” - WordCamp Bari 2019
Grunt: automazione per sviluppatori “pigri” - WordCamp Bari 2019Grunt: automazione per sviluppatori “pigri” - WordCamp Bari 2019
Grunt: automazione per sviluppatori “pigri” - WordCamp Bari 2019
 
Vagrant e Docker a confronto;scegliere ed iniziare
Vagrant e  Docker a confronto;scegliere ed iniziareVagrant e  Docker a confronto;scegliere ed iniziare
Vagrant e Docker a confronto;scegliere ed iniziare
 
Perl Template Toolkit
Perl Template ToolkitPerl Template Toolkit
Perl Template Toolkit
 

Fare Drupal a linea di Comando

  • 1. “Fare Drupal da linea di comando” Cos'è Drupal? Cos'è Drush? - Drush: come si installa - Drush Make: come si installa - Installazione Drupal con Drush e Makefile - Installazione e abilitazione moduli - Disabilitazione e disinstallazione moduli - Aggiornamento moduli - Backup e Restore Sito $incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′ 20/02/2012
  • 2. “Fare Drupal da linea di comando” Cos'è Drupal? Quanti di voi lo conoscono? $incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′ 20/02/2012
  • 3. “Fare Drupal da linea di comando” Cos'è Drupal? >_ CMS opensource >_ php >_ CMF $incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′ 20/02/2012
  • 4. “Fare Drupal da linea di comando” Attenzione! : = : geek $incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′ 20/02/2012
  • 5. “Fare Drupal da linea di comando” Cos'è Drush? >_ Drush = Drupal + Shell >_ ls /drush/features Download Enable Disable Uninstall Update >_ ls /drush/drupal_components Modules Profiles Themes Translation Core $incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′ 20/02/2012
  • 6. “Fare Drupal da linea di comando” Drush: come si installa >_ cd $HOME >_ wget http://ftp.drupal.org/files/projects/drush-7.x-4.5.tar.gz >_ tar xzf drush-7.x-4.5.tar.gz >_ cd /usr/local/bin >_ ln -s /path/to/drush drush >_ drush status $incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′ 20/02/2012
  • 7. “Fare Drupal da linea di comando” Drush Make: come si installa >_ mkdir $HOME/.drush && cd $HOME/.drush >_ wget http://ftp.drupal.org/files/projects/drush_make-6.x-2.3.tar.gz >_ tar xzf drush_make-6.x-2.3.tar.gz $incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′ 20/02/2012
  • 8. “Fare Drupal da linea di comando” Installazione Drupal con Drush e Makefile (versione semplice) http://drushmake.me/ >_ drush make pugbo.make pugbo >_ drush si standard --site-name="Drupal 7 PugBO" --db-url=mysql://root:root@localhost/testpugbo $incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′ 20/02/2012
  • 9. “Fare Drupal da linea di comando” Installazione e abilitazione moduli >_ drush dl token && drush en token ecc ecc Oppure >_ drush dl token --select $incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′ 20/02/2012
  • 10. “Fare Drupal da linea di comando” Disabilitazione e disinstallazione moduli >_ drush dis token >_ drush pm-uninstall token $incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′ 20/02/2012
  • 11. “Fare Drupal da linea di comando” Aggiornamento moduli >_ drush up $incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′ 20/02/2012
  • 12. “Fare Drupal da linea di comando” Backup Sito >_ drush archive-dump default $incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′ 20/02/2012
  • 13. “Fare Drupal da linea di comando” Restore Sito >_ drush archive-restore ./m29511d1.20120208_095943.tar.gz --destination=/home/darthdrupal/www/dinamicamente --db-url=mysql://root:root@localhost/dinamicamente $incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′ 20/02/2012
  • 14. “Fare Drupal da linea di comando” the end >_ thanks Luca D'Amico Mirko Marraro @menteora @DarthDrupal $incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′ 20/02/2012
  • 15. “Fare Drupal da linea di comando” A breve le slide su... www.dinamicamente.org @dinamicamente $incontro['pugBO'][4] = ‘Fare Drupal da linea di comando′ 20/02/2012