Run make devserver from environment variables, not a config file (closes #360)
check / check (push) Waiting to run
check / check (push) Waiting to run
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 is contained in:
1 parent
092176d917
commit
48588b397d
2 files changed
+7
-5
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user