update Taskfile.yml support setting templ proxy bind using env
This commit is contained in:
parent
7a264bf0bc
commit
88da7a5e3f
1 changed files with 4 additions and 1 deletions
|
|
@ -1,10 +1,13 @@
|
||||||
version: "3"
|
version: "3"
|
||||||
|
vars:
|
||||||
|
TEMPL_PROXYBIND: '{{.TEMPL_PROXYBIND | default "127.0.0.1"}}'
|
||||||
|
TEMPL_PROXY: '{{.TEMPL_PROXY | default "http://127.0.0.1:9000"}}'
|
||||||
tasks:
|
tasks:
|
||||||
# Development Tools
|
# Development Tools
|
||||||
templ:
|
templ:
|
||||||
desc: Run templ with integrated server and hot reload
|
desc: Run templ with integrated server and hot reload
|
||||||
cmds:
|
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:
|
tailwind-clean:
|
||||||
desc: Clean tailwind output
|
desc: Clean tailwind output
|
||||||
cmds:
|
cmds:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue