File tree Expand file tree Collapse file tree 5 files changed +16
-26
lines changed
Expand file tree Collapse file tree 5 files changed +16
-26
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ $ ./_scripts/docker_jekyll_serve
4040これは4000番のポートでコンテンツを供給する。
4141Webブラウザで < http://127.0.0.1:4000/ > を開くことで内容を確認できる。
4242
43+ ローカルHTTPサーバーを停止するには Ctrl-C でプロセス自体を停止する。
44+ 内部で docker の専用ネットワークが作成されているため、
45+ それも削除するにはサーバーを停止した後で ` docker compose down ` を実行する。
46+
4347また以下のように同コマンドへオプションを指定すると、インクリメンタルビルドと
4448変更監視&自動再ビルド機能が有効になる。
4549
Original file line number Diff line number Diff line change 99 - ' README.md'
1010 - ' vendor'
1111 - ' eyecatch.rb'
12+ - ' compose.yaml'
1213include :
1314 - ' .well-known'
1415
Original file line number Diff line number Diff line change 1010
1111set -eu
1212
13- dir=" $( pwd) "
14-
15- case $( uname -s) in
16- MSYS* ) dir=$( cygpath -w $dir ) ;;
17- esac
18-
19- docker run --rm -it \
20- --workdir //srv/jekyll \
21- -v " ${dir} :/srv/jekyll" \
22- -p 4000:4000 \
23- --entrypoint " " \
24- ghcr.io/actions/jekyll-build-pages:v1.0.13 \
25- " $@ "
13+ docker compose run --rm jekyll " $@ "
Original file line number Diff line number Diff line change 1010
1111set -eu
1212
13- dir=" $( pwd) "
14-
15- case $( uname -s) in
16- MSYS* ) dir=$( cygpath -w $dir ) ;;
17- esac
18-
19- docker run --rm -it \
20- --workdir //srv/jekyll \
21- -v " ${dir} :/srv/jekyll" \
22- -p 4000:4000 \
23- --entrypoint jekyll \
24- ghcr.io/actions/jekyll-build-pages:v1.0.13 \
25- server -H 0.0.0.0 " $@ "
13+ docker compose run --rm -p 4000:4000 jekyll jekyll server -H 0.0.0.0 " $@ "
Original file line number Diff line number Diff line change 1+ services :
2+ jekyll :
3+ image : ghcr.io/actions/jekyll-build-pages:v1.0.13
4+ entrypoint : " "
5+ working_dir : /srv/jekyll
6+ volumes :
7+ - .:/srv/jekyll
8+ ports :
9+ - " 4000:4000"
You can’t perform that action at this time.
0 commit comments