ericpugh / jedi-console
A Drupal module providing utilities for developing with Lando.
1.0.0
2020-04-21 17:37 UTC
Requires
- drupal/console: ^1.9
- drupal/core: ^8.7||^9.0
- drush/drush: ^10.0
This package is auto-updated.
Last update: 2025-01-22 04:34:13 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.