You must have version control:
- single configuration file template
- two value configuration files (one for each environment)
- one script able to accept the configuration file template and fill it with the correct values depending on the environment.
This way there is no problem during pull / push.
Vonc source share