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: