Run make devserver from environment variables, not a config file (closes #360)
check / check (push) Canceled after 0s

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
This commit was merged in pull request #364.
This commit is contained in:
clawbot committed 2026-11-11 21:55:58 +01:00
1 parent 092176d917
commit 0de6972c2d
2 files changed
+7 -5

No files matched your search

-1
View File
@@ -70,4 +70,3 @@ vendor/
# Local dev configs # Local dev configs
config.yml config.yml
config.yaml config.yaml
config.dev.yml
+7 -4
View File
@@ -79,12 +79,15 @@ docker-versioned:
docker-test: docker-test:
@script/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 devserver: docker-versioned devserver-stop
@key="$$(head -c 32 /dev/urandom | base64)" && \
docker run -d --name pixad-dev -p 8080:8080 \ docker run -d --name pixad-dev -p 8080:8080 \
-v $(CURDIR)/config.dev.yml:/etc/pixa/config.yml:ro \ -e PIXA_SIGNING_KEY="$$key" -e PIXA_DEBUG=true \
pixa:latest pixa:latest >/dev/null && \
@echo "pixad running at http://localhost:8080" echo "pixad running at http://localhost:8080" && \
echo "signing key: $$key"
# Stop dev server # Stop dev server
devserver-stop: devserver-stop: