about summary refs log tree commit diff stats
path: root/justfile
diff options
context:
space:
mode:
authorAlan Pearce2024-06-28 16:54:42 +0200
committerAlan Pearce2024-06-28 16:54:42 +0200
commite29149ae9b0cd31f38beb38b0f4ea4e1599f4d93 (patch)
tree40f9f63157ad14d953a900f0971791c874c0a1ce /justfile
parent5dcf04d83605f5cfe1bf83c0a4c296bae47c3365 (diff)
downloadwebsite-e29149ae9b0cd31f38beb38b0f4ea4e1599f4d93.tar.lz
website-e29149ae9b0cd31f38beb38b0f4ea4e1599f4d93.tar.zst
website-e29149ae9b0cd31f38beb38b0f4ea4e1599f4d93.zip
use socket passing also for TLS
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