I
I
Ilya Trusov2017-03-03 22:17:20
git
Ilya Trusov, 2017-03-03 22:17:20

How to host configs on github?

Hello, I can’t figure out how to properly host application configs in the git. For example, I am writing some application, it has a config with a token for some service, of course, it is impossible to commit this tconfig. But I can’t help but commit, because nothing will work without it. How to work with it? Commit an empty config without specifying a token? Or write in readme what and how?
Thanks for the clarifications in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2017-03-03
@sim3x

Environment variables, files with secret data in the project directory, etc.

E
evnuh, 2017-03-03
@evnuh

Do "overlapping" configs. Commit the default config with the wrong tokens, and when reading, first read from this config, and then read over it from other places, the same environment variables.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question