From 76faebd234644d77429ddcefaf8ccdb8a1beff0d Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Fri, 22 Oct 2021 20:07:07 -0600 Subject: Move constants to config, update string formatting Not sure if this is the Elixir-y way to do this, but seems more logical than hardcoding values such as redis connection. Also went through and improved how string formatting was performed throughout the app. Rather than "combining" <> "strings" this way, I'm now just doing "#${variable}#{formatting}", which looks a lot cleaner. --- config/config.exs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 config/config.exs (limited to 'config/config.exs') diff --git a/config/config.exs b/config/config.exs new file mode 100644 index 0000000..44b3af8 --- /dev/null +++ b/config/config.exs @@ -0,0 +1,7 @@ +import Config + +config :privacy_revolver, + redis_conn: "redis://localhost:6379", + fallback_str: "-fallback", + update_file: ".update-results", + services_json: "services.json" -- cgit v1.2.3