Skip to content

Commit 847e1a2

Browse files
committed
refactor(config): remove endpoint configs from config/config,prod
1 parent df1c9c7 commit 847e1a2

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

config/config.exs

+1-10
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,10 @@ import Config
99

1010
# Set ecto repos
1111
config :epochtalk_server, ecto_repos: [EpochtalkServer.Repo]
12+
1213
# Set Guardian.DB to GuardianRedis
1314
config :guardian, Guardian.DB, repo: GuardianRedis.Repo
1415

15-
# Configures the endpoint
16-
config :epochtalk_server, EpochtalkServerWeb.Endpoint,
17-
url: [host: "localhost"],
18-
render_errors: [
19-
formats: [json: EpochtalkServerWeb.Controllers.ErrorJSON],
20-
layout: false
21-
],
22-
pubsub_server: EpochtalkServer.PubSub,
23-
live_view: [signing_salt: "2Ay27BWv"]
24-
2516
# Swoosh API client is needed for adapters other than SMTP.
2617
config :swoosh, :api_client, false
2718

config/prod.exs

-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
import Config
22

3-
# Include the path to a cache manifest
4-
# containing the digested version of static files. This
5-
# manifest is generated by the `mix phx.digest` task,
6-
# which you should run after static files are built and
7-
# before starting your production server.
8-
config :epochtalk_server, EpochtalkServerWeb.Endpoint,
9-
cache_static_manifest: "priv/static/cache_manifest.json"
10-
113
# Do not print debug messages in production
124
config :logger, level: :info
135

0 commit comments

Comments
 (0)