staging and developing content between sites

27
Staging and Deploying content between sites DrupalCamp Oslo, 2016 The Drupal 7 way

Upload: sven-berg-ryen

Post on 12-Apr-2017

93 views

Category:

Software


0 download

TRANSCRIPT

Staging and Deploying content between sites

DrupalCamp Oslo, 2016

The Drupal 7 w

ay

Drupal Web Developer at X-TeamEmail: [email protected] Twitter: @svenbergryen

Hello, I’m Sven

My Drupal story

◦ Founded the Singapore Drupal Meetup 2010 ◦ Hosted DrupalCamp Singapore 2012 and 2013 ◦ Co-maintainer of EU Cookie Compliance ◦ Translated most of Drupal 8 Core to Norwegian ◦Working since 2015 for X-Team on sites for

major media and engineering companies

Staging and Deploying content between sites

◦ Configuring Deploy and Services ◦What Deploy supports “Out of the Box” ◦What Deploy supports with tweaks ◦What it doesn’t support ◦What it would be really, really great

if it suported

◦ Stage your content on one domain, and deploy it to the live site.

◦ deploy, deploy_ui, deploy_managed_ui

◦ 7.x-3.0-alpha1 / 8.x-1.0-alpha7 ◦ Requires:

ctools, entity, entity_dependency, uuid

Deploy

◦ Exposes a customizable REST server for CRUD operations on Drupal entities, and more

◦ uuid_services, rest_server

◦ 7.x-3.17 / 8.x-4.0-beta2 ◦ Requires:

ctools, uuid

Services

Setting up Deploy and ServicesDemo

What Deploy supports “Out of the Box”

Does it support most field types?

BackgroundField LinkBlock Reference ListBoolean LocationDate Long TextDecimal ParagraphsEmail Phone NumberFile Postal AddressFloat Term ReferenceGmap Marker TextImage Video EmbedInteger Views Reference

Does it support most entity reference fields?

Node ReferenceUser ReferenceFile ReferenceTaxonomy Term ReferenceTaxonomy Vocabulary ReferenceComment Reference

Does it support most field types?

BackgroundField LinkBlock Reference ListBoolean LocationDate Long TextDecimal ParagraphsEmail Phone NumberFile Postal AddressFloat Term ReferenceGmap Marker TextImage Video EmbedInteger Views Reference

Does it support most entity reference fields?

Node ReferenceUser ReferenceFile ReferenceTaxonomy Term ReferenceTaxonomy Vocabulary ReferenceComment Reference

What it does and doesn’t supportSometimes with a few tweaks

What it does and doesn’t support (sometimes with a few tweaks)

◦ Field Collections? ◦ Paragraphs? ◦Webform? ◦Menu Links? ◦ Revisions? ◦ Translations? ◦ Path Alias? ◦ CKEditor/IMCE? ◦ Slow server response / Timeouts?

Field Collections

◦ https://www.drupal.org/project/field_collection_deploy

◦ 2 patches from ◦ https://www.drupal.org/node/2075325

Paragraphs

◦ Sandbox module ◦ https://www.drupal.org/sandbox/

tundrainteractive/2369177

Menu Links

◦ https://www.drupal.org/project/entity_menu_links

◦ Gives you ability to deploy menu items from the Menu List Items page

◦ Extra module ◦ Automatically adds menu item on deployment ◦ https://github.com/svenbergryen/

auto_deploy_menu_item

Revisions/Translations

◦ Yes, works well! ◦ But keep in mind that all translations will be

deployed when you deploy the content.

Path Alias

◦ Patch ◦ https://www.drupal.org/node/1450902

IMCE/CKEditor

◦ Patch ◦ https://www.drupal.org/node/1757760

Slow server response / Timeouts

◦ Patch ◦ https://www.drupal.org/node/2533036

◦ Adds a config field that allows you to set a timeout

What it does and doesn’t support (sometimes with a few tweaks)

◦ Field Collections? — YES, with patch ◦ Paragraphs? — YES, sandbox module ◦Webform? — NO ◦Menu Links? — YES, extra code for convenience ◦ Revisions? — YES, out of the box ◦ Translations? — YES, but deploys all at once ◦ Path Alias? — YES, with patch ◦ CKEditor/IMCE? — YES, with patch ◦ Slow server response / Timeouts? — Patch

What if it could support…?

It would be really, really great if it supported…

◦ Drupal Commerce Entities ◦ Selection of language to deploy ◦ Deploy of Entity deletions

Worth looking into

Worth looking into

◦ Deploy Add-on ◦ https://www.drupal.org/project/deploy_addon

◦ 7.x-1.0-beta5

◦ Deploy Overview Views ◦ https://www.drupal.org/project/deploy_overview_views

◦ 7.x-1.0-alpha1

Thank You!Questions?

[email protected] – @svenbergryen