From 0de6972c2db5421d54f9068fb1c478871087a894 Mon Sep 17 00:00:00 2001 From: clawbot <35+clawbot@noreply.example.org> Date: Wed, 11 Nov 2026 21:55:58 +0100 Subject: [PATCH] Run make devserver from environment variables, not a config file (closes #360) The target mounted config.dev.yml, which nothing creates, so Docker made a directory in its place and pixad exited. It now passes a new random PIXA_SIGNING_KEY each run, printed so the developer can log in, and PIXA_DEBUG=true so the login form works over plain HTTP. The unused .gitignore entry for config.dev.yml is removed. Model: opus-5-5 --- .gitignore | 1 - Makefile | 11 +++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 6c4d819..c8e02b7 100644 --- a/.gitignore +++ b/.gitignore @@ -70,4 +70,3 @@ vendor/ # Local dev configs config.yml config.yaml -config.dev.yml diff --git a/Makefile b/Makefile index 22ac9c9..a074315 100644 --- a/Makefile +++ b/Makefile @@ -79,12 +79,15 @@ docker-versioned: docker-test: @script/test -# Run local dev server in Docker +# Run local dev server in Docker, with debug on and a new random signing +# key each run. Log in to the page with the key it prints. devserver: docker-versioned devserver-stop + @key="$$(head -c 32 /dev/urandom | base64)" && \ docker run -d --name pixad-dev -p 8080:8080 \ - -v $(CURDIR)/config.dev.yml:/etc/pixa/config.yml:ro \ - pixa:latest - @echo "pixad running at http://localhost:8080" + -e PIXA_SIGNING_KEY="$$key" -e PIXA_DEBUG=true \ + pixa:latest >/dev/null && \ + echo "pixad running at http://localhost:8080" && \ + echo "signing key: $$key" # Stop dev server devserver-stop: