ericpugh/jedi-console

A Drupal module providing utilities for developing with Lando.

Installs: 105

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

Type:drupal-module

1.0.0 2020-04-21 17:37 UTC

This package is auto-updated.

Last update: 2024-04-22 02:40:48 UTC


README

A Drupal module providing utilities for developing with Lando

Install

It's recommend to install in a Drupal project with composer.

composer require ericpugh/jedi-console --dev

Utilities

  • Alter the core Syslog service to make Drupal log events available within lando logs command.

This makes it easier to work with logs, for example you could change the "identity" in Drupal Syslog's settings to "JEDI" and then follow the logs with a command like this:

lando logs -f -s appserver | grep -i 'jedi'
  • A class to retrieve Lando environment information.

Example:

$lando = \Drupal\jedi_console\Lando::getInfo();
$nodeVersion = $lando['nodejs']['version'];
echo $nodeVersion;
// outputs: 10

Console Commands

Jedi console provides several Drupal Console commands for common tasks while working in a local environment.

  • drupal jedi:pull pulls a remote database, with an arguement for the Drush site alias. (note: Expects Drush aliases to be properly configured, see example.)
  • drupal jedi:up Updates a local site. Runs cache clear, update database, and configuration import.
  • drupal jedi:dev get the modules listed in Drupal's $settings['config_exclude_modules'] and enable those modules.

Please create and issue or submit a Merge Request for any improvements or ideas for useful features.