Skip to content

Environment variables must be set much earlier for php-fpm #89

@rfay

Description

@rfay

@gilzow and I were working on ddev.com site today, trying to use this add-on with it, and it turned out that the environment variables it needs to operate didn't get set early enough to be used by php-fpm.

What we do currently is create https://github.com/drud/ddev-platformsh/blob/main/homeadditions/.bashrc.d/platformsh-environment.sh, which loads environment variables in bash based on .global/environment and .environment.

Some things we could do instead:

  1. Create a .ddev/.env with these same environment variables (but that could overwrite user info) or
  2. Create a docker-compose.platformsh.yaml that set them with an environment section.

Both of these are pretty easy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions