-
Notifications
You must be signed in to change notification settings - Fork 890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
warning no environment specified, defaulting to: development #2264
Comments
The warning is expected if you don't pass |
Yeah, all the commands that take an environment option all have the same output if it's omitted:
Looking at git history, it's also been like this since the project's creation 13 years ago. I think having it be a warning could be useful where in production, where you are expected to use the As a middle ground, would updating the docs to indicate that if you omit the environment flag, then a warning will be shown and phinx will use the value of To be clear, I don't have a strong opinion about this one way or the other. |
I guess that's better but TBH I didn't fully read the docs lately, though I have been using phinx for years. Somehow this warning caught my attention in my latest project. I think the confusion is due to the warning doesn't state where it arises from -- whether its from cmd line flag or config file. I don't usually use On a side note, the docs still says |
The docs seems outdated.
My config looks like this:
But I get a warning:
warning no environment specified, defaulting to: development
.How to properly set
default_environment
?The text was updated successfully, but these errors were encountered: