-
Notifications
You must be signed in to change notification settings - Fork 97
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
Feature/v3 #40
base: main
Are you sure you want to change the base?
Feature/v3 #40
Conversation
BREAKING CHANGE: * Rename environment variable `WP_ENV` to `WP_ENVIRONMENT_TYPE` * Rename sensitive config file from wp-config.local.php to .wp-config.php * Update .env file to use dotenv variable format * Remove support for CLI --env param * Rename WP_ENV_* PHP constants to WP_ENVIRONMENT_*
…new "local" environment type
@gtrinkwon @sean-dunwoody Can I have your advice on possible options for replacing the local
|
Hi @simonrjones , Just a few of thoughts from me:
On balance I think it would be best to go for the The other route might be to perhaps offer both options, but default to the |
For the theoretical custom env-specific PHP we might want to include, we still have the option of putting it inside I agree with Sean Just to confirm the directory structure: root
|
@sean-dunwoody @gtrinkwon thanks for your feedback. You can still include logic in the environment config files, just not the .env file which would only contain secrets. From what I understand other WP projects use .env files too (Roots) so let's go with it. @gtrinkwon We cannot really use custom environments with WP since it has a fixed list of environments is now supports which you cannot add to. I guess you're thinking of staging and staging2 type environments? As long as the WP_ENVIRONMENT_TYPE is set to staging for both that will work. Your directory structure looks right to me, I'll make sure we have that in the docs. And finally, we'll have to talk about retroactively using this on older projects. Ideally we would, so it's designed to work with PHP 7.4+ |
Support for WordPress native WP_ENVIRONMENT_TYPE, this requires some breaking changes so I've created a new major release and updated docs accordingly. See issue #37