Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config/default.yaml to .gitignore and create it programatically #52

Open
michaltakac opened this issue Mar 19, 2019 · 1 comment
Open

Comments

@michaltakac
Copy link
Contributor

michaltakac commented Mar 19, 2019

If I rewrite config/default.yaml with my own defaults, I don't want to accidentally commit my changes.
Can we have this ignored by git and created programmatically?

Or, have a default.example.yaml file and gitignore default.yaml.

@KanoczTomas
Copy link
Owner

The config package handles this. Default.yaml can be left intact and you can create a file e.g. mainnet.yaml and edit the configs that you want changed. Omitted stuff gets inherited from default.yaml. You have to set NODE_ENV=mainnet to use mainnet.yaml. It has to be documented and a script that creates regtest, testnet and mainnet templates added to docker as well. Those could be in .gitignore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants