about summary refs log tree commit diff stats
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rwxr-xr-xjustfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/justfile b/justfile
index f799c1b..aab1b65 100755
--- a/justfile
+++ b/justfile
@@ -2,6 +2,9 @@
 #!nix-shell -i "just --justfile"
 
 docker_registry := "registry.fly.io/alanpearce-eu"
+listen_address := env_var_or_default("LISTEN_ADDRESS", "::1")
+tls_port := env_var_or_default("TLS_PORT", "8443")
+port := env_var_or_default("PORT", "8080")
 
 default:
 	@just --list --justfile {{ justfile() }} --unsorted
@@ -24,7 +27,7 @@ build:
 	go run ./cmd/build
 
 dev:
-	modd
+	systemfd -s https::{{ listen_address }}:{{ tls_port }} -s http::{{ listen_address }}:{{ port }} -- modd
 
 ci: build check-links