As in most cases, I have two environments: approval and production for both the server and the database.
I would like to know how to use the same database address in the application settings (in PHP) where, when being run in the homologation environment, the host points to the homologation bank, when in production, the host would point to the production database, thus avoiding setting the database host whenever the server was deployed.