Skip to content

Commit

Permalink
Fix vite startup in dev docker compose on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Dec 4, 2024
1 parent d738b59 commit 5a47b0e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@ config :wca_live, WcaLiveWeb.Endpoint,
code_reloader: true,
check_origin: false,
watchers: [
# Start Vite with a wrapper to avoid leaving zombie processes
"#{Path.expand("../client/wrapper.sh", __DIR__)}": [
# Start Vite with a wrapper to avoid leaving zombie processes.
# Note that when developing with Docker we the script is mounted
# in the container, and invoking it directly doesn't work on
# Windows (the mounted file does not appear as executable). To
# work around that, we invoke sh explicitly.
sh: [
Path.expand("../client/wrapper.sh", __DIR__),
"npm",
"run",
"dev",
Expand Down

0 comments on commit 5a47b0e

Please sign in to comment.