Skip to content

Commit 137f450

Browse files
committed
chore: Migrate from Mix.Config to Config
1 parent fbcba3b commit 137f450

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

config/config.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# is restricted to this project.
66

77
# General application configuration
8-
use Mix.Config
8+
import Config
99

1010
config :brasil_em_dados,
1111
ecto_repos: [BrasilEmDados.Repo]

config/dev.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use Mix.Config
1+
import Config
22

33
# Configure your database
44
config :brasil_em_dados, BrasilEmDados.Repo,

config/prod.exs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use Mix.Config
1+
import Config
22

33
# For production, don't forget to configure the url host
44
# to something meaningful, Phoenix uses this information
@@ -10,7 +10,7 @@ use Mix.Config
1010
# which you should run after static files are built and
1111
# before starting your production server.
1212
config :brasil_em_dados, BrasilEmDadosWeb.Endpoint,
13-
url: [host: "example.com", port: 80],
13+
url: [host: "brasilemdados.com", port: 80],
1414
cache_static_manifest: "priv/static/cache_manifest.json"
1515

1616
# Do not print debug messages in production

config/prod.secret.exs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# from environment variables. You can also hardcode secrets,
33
# although such is generally not recommended and you have to
44
# remember to add this file to your .gitignore.
5-
use Mix.Config
5+
import Config
66

77
database_url =
88
System.get_env("DATABASE_URL") ||
@@ -35,7 +35,7 @@ config :brasil_em_dados, BrasilEmDadosWeb.Endpoint,
3535
# If you are doing OTP releases, you need to instruct Phoenix
3636
# to start each relevant endpoint:
3737
#
38-
# config :brasil_em_dados, BrasilEmDadosWeb.Endpoint, server: true
38+
config :brasil_em_dados, BrasilEmDadosWeb.Endpoint, server: true
3939
#
4040
# Then you can assemble a release by calling `mix release`.
4141
# See `mix help release` for more information.

config/test.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use Mix.Config
1+
import Config
22

33
# Only in tests, remove the complexity from the password hashing algorithm
44
config :bcrypt_elixir, :log_rounds, 1

0 commit comments

Comments
 (0)