Document local Docker and Finch usage; fix dependency-volume reset instructions
This commit is contained in:
1 parent
6551070646
commit
f18719417f
2 files changed
+34
-17
No files matched your search
+9
-7
@@ -1,12 +1,14 @@
|
||||
# NAS-friendly dev/preview environment. No Node or node_modules on the host:
|
||||
# dependencies live in the image, the source is bind-mounted, and a named
|
||||
# volume shields /site/node_modules from the bind mount.
|
||||
# Docker-compatible dev/preview environment (Docker, or Finch on macOS).
|
||||
# No Node or node_modules on the host: dependencies live in the image,
|
||||
# the source is bind-mounted, and a named volume shields
|
||||
# /site/node_modules from the bind mount.
|
||||
#
|
||||
# docker compose up # preview on http://<host>:4000
|
||||
# docker compose run --rm hexo generate # build into ./public
|
||||
# docker compose up # preview on http://<host>:4000
|
||||
# docker compose run --rm hexo generate # build into ./public
|
||||
#
|
||||
# After changing package.json or yarn.lock:
|
||||
# docker compose build && docker compose up -V # rebuild + reset deps
|
||||
# After changing package.json or yarn.lock, rebuild and reset the
|
||||
# named dependency volume:
|
||||
# docker compose build && docker compose down -v && docker compose up
|
||||
services:
|
||||
hexo:
|
||||
build: .
|
||||
|
||||
Reference in new issue
Block a user