cakephp / cakephp/phinx

warning no environment specified, defaulting to: development

Open
#2,264 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
4.5k
Forks
884
PR merge metrics
No merged PRs in 30d

Description

The docs seems outdated.

My config looks like this:

environments:
    default_migration_table: phinxlog
    default_environment: development

But I get a warning: warning no environment specified, defaulting to: development.

How to properly set default_environment?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked configuration documentation and compare its environment settings with the reported config and warning. Reproduce the warning using the shown configuration, then update the documentation to explain the proper default_environment setting and verify that the example matches the tool's behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.