Skip to content

Commit 8908389

Browse files
committed
Change mix template_assets to be run from within web app
1 parent 7988dfd commit 8908389

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/components_guide_web/lib/components_guide_web/endpoint.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ defmodule ComponentsGuideWeb.Endpoint do
1313
)
1414

1515
socket("/live", Phoenix.LiveView.Socket, websocket: [connect_info: [session: @session_options]])
16-
16+
1717
plug(Plug.Static,
1818
at: "/collected/image",
1919
from: {:components_guide_web, "priv/static/collected/image"},

apps/components_guide_web/lib/mix/tasks/template_assets.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ defmodule Mix.Tasks.TemplateAssets do
99

1010
IO.puts("Running mix template_assets in #{project_dir()}")
1111
IO.inspect(File.ls(project_dir()))
12-
12+
1313
IO.puts("Template path: #{templates_path()}")
1414

1515
IO.inspect(File.ls(templates_path()))
@@ -34,10 +34,10 @@ defmodule Mix.Tasks.TemplateAssets do
3434
defp project_dir(), do: File.cwd!()
3535

3636
defp templates_path(),
37-
do: Path.join(project_dir(), "/apps/components_guide_web/lib/components_guide_web/templates")
37+
do: Path.join(project_dir(), "/lib/components_guide_web/templates")
3838

3939
defp static_collected_dir(),
40-
do: Path.join(project_dir(), "/apps/components_guide_web/priv/static/collected")
40+
do: Path.join(project_dir(), "/priv/static/collected")
4141

4242
defp process_image(image_path) do
4343
data = File.read!(image_path)

0 commit comments

Comments
 (0)