Skip to content

Commit

Permalink
Update docker command
Browse files Browse the repository at this point in the history
  • Loading branch information
syohex committed Aug 2, 2024
1 parent 73d5391 commit b4158cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ PORT ?= 4000
all: up

$(DOCKERLOCK):
PORT=${PORT} docker-compose up -d
PORT=${PORT} docker compose up -d
touch $@

.PHONY: up serve
Expand All @@ -20,14 +20,14 @@ serve: $(DOCKERLOCK)

.PHONY: log
log: $(DOCKERLOCK)
docker-compose logs -f
docker compose logs -f

# -T option from https://github.com/docker/compose/issues/7306
.PHONY: build
build: $(DOCKERLOCK)
docker-compose exec -T main jekyll build --trace
docker compose exec -T main jekyll build --trace

.PHONY: down
down:
docker-compose down
docker compose down
rm -rf $(DOCKERLOCK)

0 comments on commit b4158cc

Please sign in to comment.