Skip to content

Commit 3f1cdae

Browse files
committed
Remove useless static configurations
Since it is a REST API we don’t need any static file ``` rm -rf priv/static web/static ```
1 parent 8a19a76 commit 3f1cdae

File tree

8 files changed

+0
-1315
lines changed

8 files changed

+0
-1315
lines changed

config/dev.exs

-10
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,6 @@ config :rest_api, RestApi.Endpoint,
1414
check_origin: false,
1515
watchers: []
1616

17-
# Watch static and templates for browser reloading.
18-
config :rest_api, RestApi.Endpoint,
19-
live_reload: [
20-
patterns: [
21-
~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
22-
~r{web/views/.*(ex)$},
23-
~r{web/templates/.*(eex)$}
24-
]
25-
]
26-
2717
# Do not include metadata nor timestamps in development logs
2818
config :logger, :console, format: "[$level] $message\n"
2919

lib/rest_api/endpoint.ex

-18
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,6 @@
11
defmodule RestApi.Endpoint do
22
use Phoenix.Endpoint, otp_app: :rest_api
33

4-
socket "/socket", RestApi.UserSocket
5-
6-
# Serve at "/" the static files from "priv/static" directory.
7-
#
8-
# You should set gzip to true if you are running phoenix.digest
9-
# when deploying your static files in production.
10-
plug Plug.Static,
11-
at: "/", from: :rest_api, gzip: false,
12-
only: ~w(css fonts images js favicon.ico robots.txt)
13-
14-
# Code reloading can be explicitly enabled under the
15-
# :code_reloader configuration of your endpoint.
16-
if code_reloading? do
17-
socket "/phoenix/live_reload/socket", Phoenix.LiveReloader.Socket
18-
plug Phoenix.LiveReloader
19-
plug Phoenix.CodeReloader
20-
end
21-
224
plug Plug.RequestId
235
plug Plug.Logger
246

priv/static/css/app.css

-80
This file was deleted.

priv/static/favicon.ico

-1.23 KB
Binary file not shown.

priv/static/images/phoenix.png

-13.6 KB
Binary file not shown.

priv/static/js/app.js

Whitespace-only changes.

0 commit comments

Comments
 (0)