From 45a2e290aa2bc59deb5971255accba517500cc25 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 19 Jun 2024 13:50:37 +0200 Subject: fix dev server/live reload --- modd.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modd.conf') diff --git a/modd.conf b/modd.conf index 072956c..f956fea 100644 --- a/modd.conf +++ b/modd.conf @@ -1,3 +1,5 @@ -config.toml { - daemon: templ generate --watch --proxy "http://localhost:3000" --cmd "go run ./cmd/server --dev" --open-browser=false +**/*.go !**/*_templ.go { + daemon +sigint: systemfd -s http::3000 -- \ + templ generate --watch \ + --cmd="go run ./cmd/server --dev" } -- cgit 1.4.1