# How to set wp-config.php database values for production

**URL:** https://discourse.roots.io/t/how-to-set-wp-config-php-database-values-for-production/24282
**Category:** bedrock
**Created:** 2022-11-23T13:27:29Z
**Posts:** 4
**Showing post:** 1 of 4

## Post 1 by @Werner-lemon — 2022-11-23T13:27:29Z

Hello,  
I would like to use bedrock / ddev for Wordpress development and Gitlab CI/CD.

I’m struggling with a rather simple task, but maybe I try to fix this the wrong way…

My Server usses Spinup and with a gitlab hook after a push to a branch the whole repository gets pulled to the server (wordpress, plugins and themes) and should contain the latest data. Right now i get the Database connection error, because I don’t know how to separate the ddev local credentials and the production / staging credentials.

I tried to create a .env.production and set the value of WP\_ENV to production, but this was not the correct way.

Is this possible with the modified folder structure (web/app and web/wp) or do I have to use the original structure and simply put the wp-config.php with the correct credentials directly on the server?

---

_[View the full topic](https://discourse.roots.io/t/how-to-set-wp-config-php-database-values-for-production/24282)._
