Commit ·
9fc140a
1
Parent(s): 7f7d174
feat: Override config with secrets file
Browse files- .gitignore +2 -0
- config/dev.exs +5 -0
.gitignore
CHANGED
|
@@ -44,3 +44,5 @@ npm-debug.log
|
|
| 44 |
icd10_vector_tensors.bin
|
| 45 |
|
| 46 |
.elixir-tools/
|
|
|
|
|
|
|
|
|
| 44 |
icd10_vector_tensors.bin
|
| 45 |
|
| 46 |
.elixir-tools/
|
| 47 |
+
|
| 48 |
+
config/*.secret.exs
|
config/dev.exs
CHANGED
|
@@ -80,3 +80,8 @@ config :phoenix_live_view, :debug_heex_annotations, true
|
|
| 80 |
|
| 81 |
# Disable swoosh api client as it is only required for production adapters.
|
| 82 |
config :swoosh, :api_client, false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
# Disable swoosh api client as it is only required for production adapters.
|
| 82 |
config :swoosh, :api_client, false
|
| 83 |
+
|
| 84 |
+
# Optional custom config file: config/dev.secret.exs
|
| 85 |
+
if File.exists?("./config/#{config_env()}.secret.exs") do
|
| 86 |
+
import_config "#{config_env()}.secret.exs"
|
| 87 |
+
end
|