anirudh-eka / dashtag

MIT License
7 stars 12 forks source link

Allow for a YAML file configuration for dashtag instances #72

Open anirudh-eka opened 9 years ago

anirudh-eka commented 9 years ago

Question: If we support configuring a dashtag instance by either environment variables or a yaml file, which should take prioritization? EG: if someone sets hashtag as "love" in the env, but "peace" in the config file, which should we go with?

anirudh-eka commented 9 years ago

Would love to get your opinion @pturley

pturley commented 9 years ago

I would expect the environment variables to take precedence, but that is just me.

pturley commented 9 years ago

Maybe something like https://github.com/laserlemon/figaro would be good. Just make sure to provide an example config that is checked in.

Also, consider setting up config in an initializer so that it runs on boot and not on every single call and lets think about how we can simplify that environment_service.rb.