Download - Drupal 8 - Hosting, Performance and Drush
![Page 1: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/1.jpg)
professional services for the webconsultancy design development hosting training support
Monday, November 25, 13
![Page 2: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/2.jpg)
about me
Greg Harvey
Monday, November 25, 13
![Page 3: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/3.jpg)
introduction
Last year we looked at hosting Drupal 8
It almost worked!
But:
No drush!
Monday, November 25, 13
![Page 4: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/4.jpg)
:’-(Monday, November 25, 13
![Page 5: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/5.jpg)
what’s the stack?
Monday, November 25, 13
![Page 6: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/6.jpg)
what’s the stack?Debian “Squeeze” (6)
Percona 5.5.33
PHP 5.3.27 (from Dotdeb)
nginx 1.2.3 (from Code Enigma)
Monday, November 25, 13
![Page 7: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/7.jpg)
installingIf you block install.php:
It has moved!
/core/install.php
Monday, November 25, 13
![Page 8: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/8.jpg)
file system
Monday, November 25, 13
![Page 9: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/9.jpg)
file systemDrupal 7
755 everything
Application only writes to sites/%site
Monday, November 25, 13
![Page 10: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/10.jpg)
file systemDrupal 8
What about CMI?
By default it sits in ‘files’
What about VCS?
Monday, November 25, 13
![Page 11: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/11.jpg)
$config_directories = array( CONFIG_ACTIVE_DIRECTORY => array( 'path' => '/some/directory/outside/webroot', 'absolute' => TRUE, ), CONFIG_STAGING_DIRECTORY => array( 'path' => '/another/directory/outside/webroot', 'absolute' => TRUE, ),);
file system
Monday, November 25, 13
![Page 12: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/12.jpg)
file systemIf you alter the path, also make sure the web server can read and write from/to that path!
Monday, November 25, 13
![Page 13: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/13.jpg)
file systemAnd deployment?
Keep ‘staging’ in Git
Monday, November 25, 13
![Page 14: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/14.jpg)
.htaccessIncludes have moved to /core/includes/
New rewrite rules to push update and install requests to new /core/ paths
Optional rules for additional security
Monday, November 25, 13
![Page 15: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/15.jpg)
# Uncomment the following two lines to only # allow PHP files in the webroot and in "/core":# RewriteCond %{REQUEST_URI} !^/core/[^/]*\.php$# RewriteRule "^.+/.*\.php$" - [F]
.htaccess
Monday, November 25, 13
![Page 16: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/16.jpg)
.htaccessAlso, TXT files!
All moved to /core/
Monday, November 25, 13
![Page 17: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/17.jpg)
drushWhat works?
Pretty much everything!
drush si
drush cc
drush uli
Monday, November 25, 13
![Page 18: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/18.jpg)
drushWhat’s new?
CMI
config-edit (cedit) config-export (cex) config-get (cget)config-import (cim)config-list (cli)
Monday, November 25, 13
![Page 19: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/19.jpg)
drushAnd deployment?
These new drush commands for CMI are important!
drush cmi <- importing ‘staging’ config to ‘active’
Monday, November 25, 13
![Page 20: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/20.jpg)
cachingAPC
memcache - Drupal 8 version already BUT:
https://drupal.org/node/2056373
Can’t work fully until it support cache tags
No Redis movement to date
Monday, November 25, 13
![Page 21: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/21.jpg)
databasesNothing much changes
But EVERYTHING changes
Monday, November 25, 13
![Page 22: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/22.jpg)
databasesNoSQL arrives!
http://www.mongodb.com/presentations/webinar-mongodb-and-drupal-8-life-without-sql
Monday, November 25, 13
![Page 23: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/23.jpg)
PHP versionWe’re running PHP 5.3
What about PHP 5.4 and 5.5?
Monday, November 25, 13
![Page 24: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/24.jpg)
PHP versionNo question they’re quicker:
http://blog.asmallorange.com/2013/08/php-roadmap-performance/
Monday, November 25, 13
![Page 25: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/25.jpg)
PHP version
Monday, November 25, 13
![Page 26: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/26.jpg)
PHP version
Monday, November 25, 13
![Page 27: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/27.jpg)
PHP versionSo why not?
Breaks Drupal 6.
Probably breaks Drupal 7 contrib too.
Monday, November 25, 13
![Page 28: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/28.jpg)
does it work?!YES!
Of course it’s not ready, but you can play.
Monday, November 25, 13
![Page 29: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/29.jpg)
performanceA lot to do:
https://drupal.org/node/1744302
But almost there!
Monday, November 25, 13
![Page 30: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/30.jpg)
performanceSo please take the next slide with a large pinch of salt:
DRUPAL 8 IS NOT READY FORPERFORMANCE TESTING
https://twitter.com/catch56/status/392295581583802368
Monday, November 25, 13
![Page 31: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/31.jpg)
performance
Monday, November 25, 13
![Page 32: Drupal 8 - Hosting, Performance and Drush](https://reader031.vdocuments.us/reader031/viewer/2022020110/5558a958d8b42a2a738b5267/html5/thumbnails/32.jpg)
questions?
Monday, November 25, 13