drupal: best practises for system maintenance

Upload: robert-castelo

Post on 03-Apr-2018

220 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    1/34

    Best Practises For

    Dru al Maintenance

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    2/34

    Directory Structure

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    3/34

    Modules & Themes

    modules & themes directories are for core Drupal

    - NEVER install into them

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    4/34

    Sites Directory

    Every file you add to your

    Drupal site should live in

    the sites directory.

    This makes it easier to keep

    your site updated.

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    5/34

    Sites All

    Modules used by multiple sites.

    Recommended in most cases.

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    6/34

    Sites Default

    sites/default/modules - used by a single site.

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    7/34

    Modules Sub-directories

    Modules can be separated into sub directories

    for easier maintenance

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    8/34

    Modules Management

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    9/34

    Enable installed modules

    www.example.com/admin/modules

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    10/34

    1. Uncheck and save

    2. Go to Uninstall

    Uninstall modules

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    11/34

    Uninstall modules

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    12/34

    Uninstall modules

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    13/34

    Uninstall modules

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    14/34

    Update modules

    1. Updates are available

    2. Go to Updates

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    15/34

    Update modules

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    16/34

    Update modules

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    17/34

    Update modules

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    18/34

    Update modules

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    19/34

    Update modules

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    20/34

    Update modules

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    21/34

    Major Updates

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    22/34

    Maintenance mode: take site off-line/admin/config/development/maintenance

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    23/34

    Only users with permission able to access the site.User login page still accessable

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    24/34

    Updating Drupal Core

    Update core

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    25/34

    Features Updates

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    26/34

    Live Stage

    Dev Upgrade

    Live Server

    Development Server

    Moving Features

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    27/34

    Configuration

    Code

    Database

    In:

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    28/34

    Strategies try to keep changes in code

    instead of database

    keep code in version control

    use Features and Strongarm use Selenium to make smallchanges on dev, test on

    staging, then implement on live

    http://seleniumhq.org

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    29/34

    Local Module

    Local module to add smallcustom tweeks

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    30/34

    Views In Module

    Store Views in a module

    improves performance easier to move (dev to live) puts views in version control

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    31/34

    Keep PHP Out Of

    The Database Easier to maintain code

    Easier to find Easier to upgrade Under version control

    If you must put PHP in a block, view, node....put code in a function in your Local module

    then just call the function

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    32/34

    Use Version ControlEnables code to be rolled back,

    and teams to work on same code

    GIThttp://git-scm.com/

    ...

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    33/34

    Questions

  • 7/29/2019 Drupal: Best Practises for System Maintenance

    34/34

    Image Credits

    http://www.iconeden.com/icon/free/get/milky-a-free-vector-iconset

    http://www.flickr.com/photos/elyob/213880107

    http://www.flickr.com/photos/evilerin/3078856253

    http://www.flickr.com/photos/28796269@N05/3225819794

    http://www.flickr.com/photos/egadapparel/3212007816

    http://www.flickr.com/photos/wildcat_dunny/318732519/