utexas/utdk_localdev

Docksal-based local development tooling for the UT Drupal Kit.

Installs: 148

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 0

Language:Shell

Type:utexas-development

pkg:composer/utexas/utdk_localdev

3.1.0 2022-07-18 16:53 UTC

This package is auto-updated.

Last update: 2026-02-05 15:18:59 UTC


README

This repository contains tooling for local development of the UT Drupal Kit. It should not be used for local development with an individual Drupal Kit site. For local development on an individual Drupal Kit site, use one of the options listed at https://drupalkit.its.utexas.edu/docs/getting_started/local_development.html

Install the latest release of the Drupal Kit

composer create-project utexas/utdk-project --no-install && cd utdk-project
git clone git@github.austin.utexas.edu:eis1-wcs/utdk_localdev.git .vscode
mv .vscode/.lando.yml .lando.yml
lando start
lando drush si -y
lando drush uli

Use XDebug

This assumes usage with Microsoft Visual Studio Code. You will need to add the extension XDebug.

  1. In the .lando.yml file, change xdebug: false to xdebug: true
  2. lando rebuild
  3. Add a breakpoint to your code. To test that it is working, start with a line in web/index.php, which will always execute, regardless of whether site data is cached or not.
  4. Use the VS Code debugging sidebar to "Run and Debug" (CTRL+SHIFT+D).
  5. Reload the site in a browser. The load should redirect you back to VS Code, with debugging data in the sidebar.

Run unit tests

lando composer update -W
lando test <path/to/file>
# Example
lando test web/profiles/custom/utexas/tests/src/Functional/BaseInstallationTest.php
lando test web/profiles/custom/utexas/tests/src/FunctionalJavascript/CustomWidgetsTest.php

Access the site's database with phpMyAdmin

  1. Run lando info. This will display a URL at which you can access phpMyAdmin, such as:
service: 'pma',
    urls: [ 'http://localhost:33569' ],
    type: 'phpmyadmin',
    healthy: true,
    backends: [ 'database' ],
    config: {},
    version: '5.1',
    meUser: 'www-data',
    hasCerts: false,
    api: 3,
    hostnames: [ 'pma.utdkproject.internal' ] },

Pull data from the Nightly Build site

If you have added utnews, utprof, utevent, and utdk_saas to the codebase, you can pull the database and files from https://live-utdk3-nightly-build.pantheonsite.io with the following:

lando pull

Lando CLI command reference

https://docs.lando.dev/cli/

Trust the Lando local certificate to avoid SSL warnings

https://docs.lando.dev/core/v3/security.html#trusting-the-ca