SLIDE 1
“Comenzando con Drupal 8 y colaborando con el proyecto”
Ruben Teijeiro
Lead Drupal Fronted Developer at Ericsson @buk0wsk1
Beltrán Rueda
Bitnami Project Manager @beltranrubo
SLIDE 2 Índice
- Instalando Bitnami Drupal 8
- Componentes y estructura
- Comenzando con la línea de comandos: Drush, Git
- Colaborando con Drupal 8
- Drupal 8 en la nube: Azure
- Mejorando el rendimiento
SLIDE 3
http://bitnami.com/stack/drupal
SLIDE 4 Bitnami Drupal 8
- Instaladores nativos
- Máquinas Virtuales
- Imágenes en la nube
SLIDE 5
Instalando Bitnami Drupal 8
SLIDE 6
Instalando Bitnami Drupal 8
SLIDE 7 Bitnami Drupal 8: Máquina Virtual
- SSH deshabilitado por defecto
$ mv /etc/init/ssh.conf.back /etc/init/ssh.conf $ sudo start ssh
- Usuario “bitnami” y password “bitnami”
- Todos los ficheros en /opt/bitnami
SLIDE 8
Supported Platforms
Más de 80 Aplicaciones en Bitnami
SLIDE 9 Bitnami Drupal 8: Componentes
- Drupal 8 CMS
- Apache web server
- MySQL database
- PHP scripting language
- phpMyAdmin web application
- PHP extensions for Drupal: gd, mbstrings, uploadprogress
- Otras extensiones: APC, Mongo, OAuth, Solr entre otras
- Drush command line tool for Drupal
- Git distributed version control
SLIDE 10 Bitnami Drupal 8: Estructura
- Instalación autocontenida: todo en un directorio
- Independiente del sistema
- Incluye todas las librerías y dependencias
- Fácil de gestionar:
$ ctlscript.sh start|stop|status apache already running mysql already running php-fpm already running
SLIDE 11 Bitnami Drupal 8: Estructura
- apps/drupal/conf Apache configuration files
- apps/drupal/htdocs
Drupal files
SLIDE 12 Bitnami Drupal 8: Línea de comandos
$ cd directorio_de_instalación (/home/beltran/drupal-8.0.alpha11) $ ./use_drupal (consola para cargar el entorno de la stack)
Start -> Program Files -> Bitnami Drupal -> Use Drupal
$ which php /home/beltran/drupal-8.0.alpha11/php/bin/php
SLIDE 13 Bitnami Drupal 8: Línea de comandos
$ git status HEAD detached at 8.0-alpha11
- Actualizar Drupal 8 al último cambio
$ git checkout 8.x $ git pull
SLIDE 14 Bitnami Drupal 8: Línea de comandos
- Obtener los últimos cambios en el repo.
$ git fetch origin
$ git reset --hard origin/8.x
$ git checkout -t -b patch
SLIDE 15 Bitnami Drupal 8: Línea de comandos
$ wget http://url_to_file.patch
$ git apply -v file.patch
- Commitear los cambios del parche.
$ git add <fichero/s modificado/s> $ git commit -m”Patch applied.”
SLIDE 16 Bitnami Drupal 8: Línea de comandos
- Crear una rama nueva con los cambios del parche.
$ git checkout -t -b interdiff
- Modificar los ficheros necesarios.
- Crear parche.
$ git diff origin/8.x > your_awesome.patch
$ git diff patch > interdiff.txt
SLIDE 17 Bitnami Drupal 8: Drush
- Obtener información del sitio
$ drush status
$ drush si --db-url=mysql://root:root@localhost/drupal8 --account- name=rteijeiro --account-pass=password --clean-url --site- name="Drupal 8" -y
- Reconstruir sitio Drupal y borrar cache.
$ drush cr
SLIDE 18 Bitnami Drupal 8: Drush
$ drush dl <module_name>
$ drush en <module_name>
$ drush dis <module_name>
SLIDE 19
Bitnami Drupal en la nube
SLIDE 20
Bitnami Drupal 8
SLIDE 21
Bitnami Drupal 8
SLIDE 22
Bitnami Drupal 8
SLIDE 23
Bitnami Drupal 8
SLIDE 24 Bitnami Drupal 8: Mejoras en rendimiento
- Apache modo “event”
- Permite servir más “requests” simultáneamente
- Funcionamiento similar a Nginx
- PHP-FPM
- PHP FastCGI Process Manager
- Google PageSpeed
- Compresión de imágenes
- Compilación de javascripts y css
- Caché
SLIDE 25 Bitnami Drupal 8: Mejoras en rendimiento
- Configuración según instancia
- Apache, PHP, MySQL se adaptan a los recursos de la instancia
- Varnish Cache
- Permite mayor número de usuarios
- Reduce significativamente la carga de PHP y MySQL
- Fácil de configurar
- Monit
- Monitoriza y reinicia automáticamente los servidores
SLIDE 26
Bitnami Drupal 8: Apache “prefork” + mod_php
Timeouts/Errores a partir de 50 peticiones
SLIDE 27
Bitnami Drupal 8: Apache “event” + PHP-FPM
Timeouts/Errores a partir de 150 peticiones
SLIDE 28
Bitnami Drupal 8: Apache “event” + PHP-FPM + Varnish
Todas las peticiones se sirven sin errores
SLIDE 29 Bitnami Drupal 8
- Fácil de usar y ahorro de tiempo
- Últimas versiones de Drupal y sus componentes
- Múltiples plataformas
- Copias de seguridad, copias para desarrollo
- Escalar el servidor de forma sencilla
- Mejoras en rendimiento
- Monitorización de servidores y alertas
- Control completo del servidor
- Documentación
- Soporte http://community.bitnami.com
SLIDE 30
Gracias
Ruben Teijeiro
Lead Drupal Fronted Developer at Ericsson @buk0wsk1
Beltrán Rueda
Bitnami Project Manager @beltranrubo