about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--justfile2
-rw-r--r--modd.conf3
-rw-r--r--nix/dev-shell.nix1
3 files changed, 5 insertions, 1 deletions
diff --git a/justfile b/justfile
index 053578a..812dd20 100644
--- a/justfile
+++ b/justfile
@@ -34,7 +34,7 @@ changelog:
 	convco changelog | prettier --stdin-filepath CHANGELOG.md > CHANGELOG.md
 
 dev:
-	watchexec --no-vcs-ignore --filter "**/*.go" --filter config.toml -r wgo run -exit ./cmd/searchix-web --live --config config.toml
+	modd
 
 reindex:
 	wgo run --exit ./cmd/searchix-web --config config.toml --replace
diff --git a/modd.conf b/modd.conf
new file mode 100644
index 0000000..8fced57
--- /dev/null
+++ b/modd.conf
@@ -0,0 +1,3 @@
+**/*.go config.toml {
+  daemon: wgo run -exit ./cmd/searchix-web --live --config config.toml
+}
diff --git a/nix/dev-shell.nix b/nix/dev-shell.nix
index 0ba6b91..58bf467 100644
--- a/nix/dev-shell.nix
+++ b/nix/dev-shell.nix
@@ -11,6 +11,7 @@ mkShell {
   packages = with pkgs;  [
     goEnv
 
+    modd
     brotli
     bleve
     wgo