New LAMPs for Old: Drupal well by Drupaling good

Benji Fisher

March 9, 2021

Introduction

About me

Benji Fisher
Fruition
drupal.org: benjifisher
twitter: @benji17fisher

Follow along

Find a link to this presentation on my GitLab Pages:

Outline

  • Introduction
  • Lando for Local Development
  • GitLab for Project Hosting
  • What’s My Line?
  • Wicked Local Development
  • The Best Laid Plans
  • Conclusion

The Five Ws

  • Who: You, me, any friends we can get to join us
  • What: Upgrade a legacy site (D6 or D7) to Drupal 9 (D9)
  • Where: Greater Boston
  • Why:
    • Help out a worthy cause.
    • Learn by doing.
    • Get to know each other by working together.
    • When: Start today, check in next month.

Lando for Local Development

Get Lando

  1. https://lando.dev/download/
  2. Follow the download link.
  3. Follow instructions.

Why Lando

  • You can run your Drupal site from your own computer.
  • There are other options. I like Lando, and this project uses it.
  • Give it a try. At least start the download.
  • More to come: Wicked Local Development

GitLab for Project Hosting

Get a GitLab account (free)

If you want to participate in this project, get an account.

  1. https://about.gitlab.com/pricing/
  2. FREE box: “Start now” button
  3. Give me your user name on Slack or Zoom chat.
  4. Get an invitation to the project.

Why GitLab

  • Issues
  • Wiki
  • Code repository (git)
  • Time tracking
  • Much more

What’s My Line?

What do you like to do/learn?

  • Project management
  • Documentation
  • Promotion
  • Planning
  • Migration
  • Site building

Project management

  • Create and organize issues.
  • Find bottlenecks.
  • Make issue templates.
  • I don’t know, you tell me!

Documentation

  • Write and test documentation.
  • Start with the Wiki.
  • Markdown everywhere!

Promotion

  • Social media
  • Blog posts
  • Get your friends involved.

Planning

  • Make an issue if you need to.
  • Get the legacy site running: Wicked Local Development
  • List all the … on the legacy site:
    • modules
    • views
    • content types/fields
    • menus

Migration

  1. Find the custom module.
  2. Look in the migrations/ directory.
  3. Use one of the existing files as a model.

Site building

  1. Create fields and content types. Export as site config.
  2. Create views.
  3. Add, enable, and configure modules.

Wicked Local Development

Get the files

  1. Make a directory, say boston-drupal-meetup.
  2. Find the “Clone” button on the project page.
  3. Copy the URL.
  4. In boston-drupal-meetup, git clone ... (paste URL).

If you do not like command line or git, find the Releases tab. D/l a tarball.

Start your LAMP stack

  1. In terminal, go to boston-drupal-meetup/newsite.
  2. lando start
  3. lando composer install
  4. lando drush site:install --db-url=mysql://drupal9:drupal9@database/drupal9 --existing-config
  5. lando drush user:login

Do it again!

Follow the same steps to create boston-drupal-meetup/legacy and start the legacy site.

The Best Laid Plans

TODO

Conclusion

TODO

  • Introduction
  • Lando for Local Development
  • GitLab for Project Hosting
  • What’s My Line?
  • Wicked Local Development
  • The Best Laid Plans
  • Conclusion

Copyleft

Creative Commons License
This slide deck by Benji Fisher is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Based on a work at https://gitlab.com/benjifisher/slide-decks.