From 0d8128aac76baf4ab4f9b40125d3c7743389e798 Mon Sep 17 00:00:00 2001 From: A L <64559343+foreverStudent001@users.noreply.github.com> Date: Thu, 20 Jun 2024 21:33:39 +0200 Subject: [PATCH 1/2] Update Makefile after updating css styles and updating config file, when previewing local in browser, changes were not showing. This fixed the issue and maybe it would help someone :) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 50d542ac0..47d81fe00 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ update-force: ## Forcefully pull all changes and don't ask to patch serve: ## Serve Quartz locally hugo-obsidian -input=content -output=assets/indices -index -root=. - hugo server --enableGitInfo --minify --bind=$(or $(HUGO_BIND),0.0.0.0) --baseURL=$(or $(HUGO_BASEURL),http://localhost) --port=$(or $(HUGO_PORT),1313) --appendPort=$(or $(HUGO_APPENDPORT),true) + hugo server --enableGitInfo --ignoreCache --minify --bind=$(or $(HUGO_BIND),0.0.0.0) --baseURL=$(or $(HUGO_BASEURL),http://localhost) --port=$(or $(HUGO_PORT),1313) --appendPort=$(or $(HUGO_APPENDPORT),true) docker: ## Serve locally using Docker docker run -it --volume=$(shell pwd):/quartz -p 1313:1313 ghcr.io/jackyzha0/quartz:hugo From cb4f866de9b80ce44048fbbbd049cb72e0df324e Mon Sep 17 00:00:00 2001 From: foreverStudent001 Date: Sat, 28 Dec 2024 23:03:00 -0500 Subject: [PATCH 2/2] make docker fix: added docker compose yml and updated docker cmd in makefile --- Makefile | 4 ++-- docker-compose.yaml | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 docker-compose.yaml diff --git a/Makefile b/Makefile index 47d81fe00..8b3de76f8 100644 --- a/Makefile +++ b/Makefile @@ -20,5 +20,5 @@ serve: ## Serve Quartz locally hugo-obsidian -input=content -output=assets/indices -index -root=. hugo server --enableGitInfo --ignoreCache --minify --bind=$(or $(HUGO_BIND),0.0.0.0) --baseURL=$(or $(HUGO_BASEURL),http://localhost) --port=$(or $(HUGO_PORT),1313) --appendPort=$(or $(HUGO_APPENDPORT),true) -docker: ## Serve locally using Docker - docker run -it --volume=$(shell pwd):/quartz -p 1313:1313 ghcr.io/jackyzha0/quartz:hugo +docker: ## Serve locally using Docker for Powershell + docker-compose up -d \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 000000000..06e1029d0 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,10 @@ +name: dropen +services: + quartz: + stdin_open: true + tty: true + volumes: + - .:/quartz + ports: + - 1313:1313 + image: ghcr.io/jackyzha0/quartz:hugo \ No newline at end of file