diff options
Diffstat (limited to 'justfile')
-rwxr-xr-x | justfile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/justfile b/justfile index 6584e01..9c02f31 100755 --- a/justfile +++ b/justfile @@ -1,19 +1,22 @@ #!/usr/bin/env cached-nix-shell -#!nix-shell -i "just --justfile" +#!nix-shell ci.nix -i "just --justfile" -docker-registry := "registry.fly.io/alanpearce-eu" +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 clean: - rm -fr website + rm -fr public check-licenses: go-licenses check ./... check-links: - hyperlink website/public --sources content + hyperlink public --sources content update-all: npins update @@ -24,11 +27,11 @@ build: go run ./cmd/build dev: - modd + systemfd -s https::{{ listen_address }}:{{ tls_port }} -s http::{{ listen_address }}:{{ port }} -- modd ci: build check-links cd *DEPLOY_FLAGS: fly auth docker templ generate - fly deploy --image $(KO_DOCKER_REPO={{ docker-registry }} ko build --bare ./cmd/server) {{ DEPLOY_FLAGS }} + fly deploy --image $(KO_DOCKER_REPO={{ docker_registry }} ko build --bare ./cmd/server) {{ DEPLOY_FLAGS }} |