0

I'm having some problem developing a web application with various developers, each one has an specific configuration to work.

and i would like to use the less resource cosuming approach to avoid that any personal configuration goes to the repository.

the basic idea is: to have a config file with all the pairs of key/values to store the configuration and substitute specific constants inserted in the code with the correpondent value in the code.

I'm pretending to replace the values in the code with the key text using this syntax {@KEY_TEXT} in pre-commit and executing the opposite operation in the post-merge hook

i'm doing this right? there's a more efficent way to do this?

EDIT: Why i don't have all debug configuration in a single file, because all this values are inserted accross various files / and involves lot of different programming languages and differente context.

i'm Using PHP/javascript/Shell/Batch file Language (Windows). in a cross plataform enviroment

asked Dec 11, 2013 at 0:13

1 Answer 1

1

How about simply not committing the debug config file?

The production config file can still be in source control with a different name. Just have your build/packaging scripts rename it during build/packaging.

answered Dec 11, 2013 at 0:18

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.