Comenzando con Drupal 8 y colaborando con el proyecto Ruben - - PowerPoint PPT Presentation

comenzando con drupal 8 y colaborando con el proyecto
SMART_READER_LITE
LIVE PREVIEW

Comenzando con Drupal 8 y colaborando con el proyecto Ruben - - PowerPoint PPT Presentation

Comenzando con Drupal 8 y colaborando con el proyecto Ruben Teijeiro Lead Drupal Fronted Developer at Ericsson @buk0wsk1 Beltrn Rueda Bitnami Project Manager @beltranrubo ndice Instalando Bitnami Drupal 8 Componentes y


slide-1
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
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
SLIDE 3

http://bitnami.com/stack/drupal

slide-4
SLIDE 4

Bitnami Drupal 8

  • Instaladores nativos
  • Máquinas Virtuales
  • Imágenes en la nube
slide-5
SLIDE 5

Instalando Bitnami Drupal 8

slide-6
SLIDE 6

Instalando Bitnami Drupal 8

slide-7
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
SLIDE 8

Supported Platforms

Más de 80 Aplicaciones en Bitnami

slide-9
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
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
SLIDE 11

Bitnami Drupal 8: Estructura

  • apps/drupal/conf Apache configuration files
  • apps/drupal/htdocs

Drupal files

slide-12
SLIDE 12

Bitnami Drupal 8: Línea de comandos

  • Linux y OS X

$ cd directorio_de_instalación (/home/beltran/drupal-8.0.alpha11) $ ./use_drupal (consola para cargar el entorno de la stack)

  • Windows

Start -> Program Files -> Bitnami Drupal -> Use Drupal

  • Entorno de la stack

$ which php /home/beltran/drupal-8.0.alpha11/php/bin/php

slide-13
SLIDE 13

Bitnami Drupal 8: Línea de comandos

  • Drupal 8: GIT

$ git status HEAD detached at 8.0-alpha11

  • Actualizar Drupal 8 al último cambio

$ git checkout 8.x $ git pull

slide-14
SLIDE 14

Bitnami Drupal 8: Línea de comandos

  • Obtener los últimos cambios en el repo.

$ git fetch origin

  • Resetear la rama actual.

$ git reset --hard origin/8.x

  • Crear una rama nueva.

$ git checkout -t -b patch

slide-15
SLIDE 15

Bitnami Drupal 8: Línea de comandos

  • Descargar el parche.

$ wget http://url_to_file.patch

  • Aplicar parche.

$ git apply -v file.patch

  • Commitear los cambios del parche.

$ git add <fichero/s modificado/s> $ git commit -m”Patch applied.”

slide-16
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

  • Crear interdiff.

$ git diff patch > interdiff.txt

slide-17
SLIDE 17

Bitnami Drupal 8: Drush

  • Obtener información del sitio

$ drush status

  • Instalar Drupal.

$ 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
SLIDE 18

Bitnami Drupal 8: Drush

  • Descargar módulo

$ drush dl <module_name>

  • Habilitar módulo.

$ drush en <module_name>

  • Deshabilitar módulo.

$ drush dis <module_name>

slide-19
SLIDE 19

Bitnami Drupal en la nube

slide-20
SLIDE 20

Bitnami Drupal 8

slide-21
SLIDE 21

Bitnami Drupal 8

slide-22
SLIDE 22

Bitnami Drupal 8

slide-23
SLIDE 23

Bitnami Drupal 8

slide-24
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
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
SLIDE 26

Bitnami Drupal 8: Apache “prefork” + mod_php

Timeouts/Errores a partir de 50 peticiones

slide-27
SLIDE 27

Bitnami Drupal 8: Apache “event” + PHP-FPM

Timeouts/Errores a partir de 150 peticiones

slide-28
SLIDE 28

Bitnami Drupal 8: Apache “event” + PHP-FPM + Varnish

Todas las peticiones se sirven sin errores

slide-29
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
SLIDE 30

Gracias

Ruben Teijeiro

Lead Drupal Fronted Developer at Ericsson @buk0wsk1

Beltrán Rueda

Bitnami Project Manager @beltranrubo