From 88da7a5e3f4dd5eea5baaf098db3f3490b127e35 Mon Sep 17 00:00:00 2001 From: juancwu Date: Sun, 11 Jan 2026 01:42:46 +0000 Subject: [PATCH] update Taskfile.yml support setting templ proxy bind using env --- Taskfile.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Taskfile.yml b/Taskfile.yml index 6f928ab..e358cd5 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -1,10 +1,13 @@ version: "3" +vars: + TEMPL_PROXYBIND: '{{.TEMPL_PROXYBIND | default "127.0.0.1"}}' + TEMPL_PROXY: '{{.TEMPL_PROXY | default "http://127.0.0.1:9000"}}' tasks: # Development Tools templ: desc: Run templ with integrated server and hot reload cmds: - - go tool templ generate --watch --cmd="go run ./cmd/server/main.go" --proxy="http://localhost:9000" --open-browser=false + - go tool templ generate --watch --cmd="go run ./cmd/server/main.go" --proxybind="{{.TEMPL_PROXYBIND}}" --proxy="{{.TEMPL_PROXY}}" --open-browser=false tailwind-clean: desc: Clean tailwind output cmds: