How to update .env setting in Bedrock for local dev and production?

I used to have wp-config-local.php to handle local dev db connections. The default wp-config store production db connection info. Now I got Bedrock setup in my local. I see “.env” and “environments” folder that contains three similar wp-config structure. Where should I put local dev and production db connections?

Thanks!

Per Bedrock’s Deployment Steps you will copy .env to your remote environment and you must then add/modify parameters on the remote copy as needed.

1 Like