Skip to content

Select development through config.dev.ini in new applications #747

Open

Description

@g105b

WebEngine currently sets production=false in config.default.ini. Remove this inherited flag and ship new applications with config.dev.ini instead, so development is selected explicitly by the application’s environment file.

This supports the mutually exclusive environment files proposed in phpgt/Config#225.

Config will default to production when no development file is present. Only one environment file may exist, including aliases: dev/development, stag/staging or prod/production. Conflicting files must cause an exception rather than be merged. Staging retains production behaviour: isProduction() is true unless the environment is development, with isStaging() identifying staging separately.

Update application generation/templates and the documentation accordingly. New applications should start in development through config.dev.ini, without inheriting production=false from framework defaults. Document that deployment must remove the development file before supplying a production or staging file, and that development configuration containing secrets should not be committed.

Keep this separate from broader deployment safeguards, which can be discussed later.

Activity

  1. added
    security
    GT/Config
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GT/Configsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions