Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Fix/aa minor fixes after lando update #328

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

aaleksu
Copy link
Contributor

@aaleksu aaleksu commented Mar 27, 2019

fixed indentation in .lando.yml
fixed settings.lando.php: getting database settings from lando info env (lando_info is a list, not a hash - taking service info by servie key does not make any sense)

Alex Anisimov added 2 commits March 27, 2019 09:29
…st, not a hash - taking service info by servie key does not make any sense)
@aaleksu aaleksu requested a review from tormi March 27, 2019 07:31
Copy link
Member

@tormi tormi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for indentation fix, thanks!

settings.lando.php comes from here: wunderio/drupal-project#22, doesn't it work for you?

@tormi
Copy link
Member

tormi commented Mar 27, 2019

@aaleksu , could you please create a separate PR for indentation fix? Then we can merge it in and discuss about other changes further here.

@aaleksu
Copy link
Contributor Author

aaleksu commented Mar 27, 2019

+1 for indentation fix, thanks!

settings.lando.php comes from here: wunderio/drupal-project#22, doesn't it work for you?

No, it does not work. I get empty database settings when I debug $databases variable in settings.php.
And it happens because $lando_info does not have key database. So, it just puts NULLs into all the database values.

@aaleksu
Copy link
Contributor Author

aaleksu commented Mar 27, 2019

@aaleksu , could you please create a separate PR for indentation fix? Then we can merge it in and discuss about other changes further here.

The thing is that app will start successfully, but you won't get project running, because Drupal will not be able to connect to database (because of wrong (null) credentials).

];

if ($lando_info) {
$service_info_from_lando_env = function ($service) use ($lando_info) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the purpose of defining this as a function? This makes it very difficult to understand what this code does and why it is there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants