Use a simpler nginx.conf in dev

This commit is contained in:
2025-06-16 20:18:05 -07:00
parent b7ee091288
commit 070bac262f
2 changed files with 36 additions and 2 deletions

View File

@@ -1,13 +1,14 @@
image = miti.sh
run:
docker run --rm -it --init -v $(PWD):/opt/app -p 8080:80 $(image)
docker run --rm -it --init -v $(PWD):/opt/app -p 8080:80 $(image) \
sh -c "openresty -p /opt/app -g 'daemon off;' -c conf/dev.nginx.conf"
build:
docker run --rm -w /opt/app -v $(PWD):/opt/app $(image) sitegen
image-rm:
docker image rm $(image):latest
docker image rm $(image)
image-build:
docker build -t $(image) .