Add 'make shell' command

This commit is contained in:
2025-11-25 15:21:10 -08:00
parent 55356c7433
commit 5787bc4e02
3 changed files with 7 additions and 1 deletions

View File

@@ -1,4 +1,3 @@
# FROM openresty/openresty:bookworm-buildpack
FROM buildpack-deps:trixie FROM buildpack-deps:trixie
ARG version=3.8.2.1 ARG version=3.8.2.1

View File

@@ -5,6 +5,9 @@ serve:
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" sh -c "openresty -p /opt/app -g 'daemon off;' -c conf/dev.nginx.conf"
shell:
docker run --rm -it --init -v $(PWD):/opt/app -p 8080:80 $(image) bash
build: build:
$(if $(file), $(docker-run) sitegen build $(file), $(docker-run) sitegen) $(if $(file), $(docker-run) sitegen build $(file), $(docker-run) sitegen)

View File

@@ -66,6 +66,10 @@
Visit `localhost:8080` in web browser Visit `localhost:8080` in web browser
### start a shell
$ make shell
### start watcher ### start watcher
$ docker exec -it container_name sitegen watch $ docker exec -it container_name sitegen watch