Skip to content

project:init fails to generate DB env vars for custom service names (e.g. "mariadb"), breaking Drupal Stacks guide #5382

@AnupamKhosla

Description

@AnupamKhosla

Priority

2 - Important - inaccurate info needs to be corrected to prevent customer issues

Where should the changes be made?

I am building a Drupal 11 site following the official Upsun Drupal documentation. The documentation relies entirely on the upsun project:init command to generate a .environment file that maps PLATFORM_RELATIONSHIPS to standard shell variables (DB_SCHEME, DB_HOST, etc.) for Drupal's use.

The project:init command gives .environment file:


export DATABASE_URL="${DB_SCHEME}://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_PATH}"

but it completely fails to generate the definition/parsing logic for these variables.

As a result, DB_SCHEME and other variables remain empty, DATABASE_URL is malformed, and Drupal crashes with "Driver not specified".

Documentation Links:

What exactly should be updated?

The new docs https://docs.upsun.com/get-started/stacks/drupal.html should be updated to clarify platformsh/config-reader usage or fix the init command to generate correct .environment logic

Optional: Additional context

No response

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