Explorar el Código

Upgrade Mix.Config to Config

master
Sean King hace 3 meses
padre
commit
2bf62bdf2c
Firmado por: seanking ID de clave GPG: 778810DE76B9460F
  1. 6
      config/config.exs
  2. 2
      config/dev.exs
  3. 2
      config/prod.exs
  4. 2
      config/test.exs

6
config/config.exs

@ -1,11 +1,11 @@
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
# and its dependencies with the aid of the Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
import Config
config :fuck_gab, :site,
name: "Fuck Gab!",
@ -78,4 +78,4 @@ config :phoenix, :json_library, Jason
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{Mix.env()}.exs"
import_config "#{config_env()}.exs"

2
config/dev.exs

@ -1,4 +1,4 @@
use Mix.Config
import Config
# Configure your database
config :fuck_gab, FuckGab.Repo,

2
config/prod.exs

@ -1,4 +1,4 @@
use Mix.Config
import Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information

2
config/test.exs

@ -1,4 +1,4 @@
use Mix.Config
import Config
config :fuck_gab, FuckGab.Scraper, http_client: FuckGab.HTTPoisonMock

Cargando…
Cancelar
Guardar