Closed mmenavas closed 6 years ago
@mmenavas You need to add the drupal
key to your .lando.yml
file like so:
# Optionally specify whether you want a global install of drupal console.
#
# You should also consider a site-local install of drupal console via composer
#
# See: https://hechoendrupal.gitbooks.io/drupal-console/content/en/getting/composer.html
#
drupal: true
then:
lando restart
then:
lando composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
to get a site local drupal
console; then:
lando drupal
will work; I'm looking into the site-local part maybe we can automate that in lando
I think that has changed since we released lando.
Thank you @serundeputy! Adding drupal: true
to the auto-generated .lando.yml
file and restarting the app server by running lando restart
worked! =)
@serundeputy @mmenavas maybe we should just set drupal console on by default?
@pirog I do like the idea of having drupal
console on by default.
I'll update the docs to reflect the additional site local step if you don't already have drupal
console as a dependency in your app compsoser.json
@serundeputy i think it makes sense too. It's as commonly used as drush
at this point. Let's plan to make it the default and just link to relevant site-local install docs
@mmenavas You need to add the
drupal
key to your.lando.yml
file like so:# Optionally specify whether you want a global install of drupal console. # # You should also consider a site-local install of drupal console via composer # # See: https://hechoendrupal.gitbooks.io/drupal-console/content/en/getting/composer.html # drupal: true
then:
lando restart
then:
lando composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
to get a site local
drupal
console; then:lando drupal
will work; I'm looking into the site-local part maybe we can automate that in
lando
I think that has changed since we released lando.
Not working for me, Did the following:
drupal: true
to the config:
section in .lando.yml filelando composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
lando restart
lando drupal command is still not available. Using Drupal 9 recipe with Lando version v3.1.4
name: drupal9
recipe: drupal9
config:
webroot: web
php: '7.4'
composer_version: '2.1.9'
via: nginx
database: mariadb:10.4
xdebug: false
drupal: true
Let me know if I am missing anything.
Thanks
@prashantdsala this would be under tooling in current versions of Lando
recipe: drupal9
config:
webroot: web
tooling:
drupal:
service: appserver
You will also want to run lando rebuild
vs lando restart
to bring in changes to a .lando.yml file
Has anyone been able to run Drupal Console commands?
Per the documentation for Drupal 8, I should be able to run
lando drupal
; however, after running the commands below, I getUnknown argument: drupal
.I'm currently running Lando v3.0.0-beta.19 on macOS Sierra (10.12.6).
My auto-generated yaml file looks like this
The output of the same command with verbose mode on: