Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment output was inside section only intended for runtime.extensions, fixes #54 #55

Merged
merged 4 commits into from
Nov 9, 2022

Conversation

rfay
Copy link
Member

@rfay rfay commented Nov 9, 2022

What was actually happening is there was a misplaced {{end}}, and the result was that environment variables were enclosed in an if runtime.extensions block. And the wordpress-composer template doesn't have any runtime.extensions, so the entire environment section was being omitted.

Also added a bit to the wordpress-composer test, to at least check for PLATFORM_RELATIONSHIPS.

This can be tested with ddev get https://github.com/rfay/ddev-platformsh/tarball/20221108_fix_wp

install.yaml Outdated Show resolved Hide resolved
install.yaml Show resolved Hide resolved
Co-authored-by: Jérôme Vieilledent <[email protected]>
@@ -219,18 +222,17 @@ post_install_actions:
{{ $phpversion := trimPrefix "php:" .platformapp.type }}
{{ if .platformapp.runtime.extensions }}
{{ $phpextensions := without .platformapp.runtime.extensions "blackfire" "pdo_pgsql" "sodium" }}
{{range $extension := $phpextensions }}
{{range $extension := $phpextensions }}
Copy link
Member Author

@rfay rfay Nov 9, 2022

Choose a reason for hiding this comment

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

Suggested change
{{range $extension := $phpextensions }}
{{range $extension := $phpextensions }}

@rfay
Copy link
Member Author

rfay commented Nov 9, 2022

Yay, @lolautruche fixed linux :) All green, and now with minor test for PLATFORM_RELATIONSHIPS.

@rfay rfay merged commit bcaf6dd into ddev:main Nov 9, 2022
@rfay rfay deleted the 20221108_fix_wp branch November 9, 2022 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants