Skip to content

Appending WP_ENVIRONMENT_TYPE necessary? #207

@crstauf

Description

@crstauf

# Create local config for environment based settings
- name: Create local config
run: |
php -r "file_exists( 'local-config.php' ) || copy( 'local-config-sample.php', 'local-config.php' );"
echo "define( 'WP_ENVIRONMENT_TYPE', ${{ env.ENVIRONMENT }} );" >> local-config.php

local-config-sample.php already defines WP_ENVIRONMENT_TYPE, and this step attempts to define it again, after the existing definition. Is this step necessary?

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