Skip to content

Commit eaa4114

Browse files
committed
Described how to stop the local HTTP server
- Changed how to stop the local HTTP server - Documented how to completely cleanup
1 parent 7091d6f commit eaa4114

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ $ ./_scripts/docker_jekyll_serve
4040
これは4000番のポートでコンテンツを供給する。
4141
Webブラウザで <http://127.0.0.1:4000/> を開くことで内容を確認できる。
4242

43+
ローカルHTTPサーバーを停止するには Ctrl-C でプロセス自体を停止する。
44+
内部で docker の専用ネットワークが作成されているため、
45+
それも削除するにはサーバーを停止した後で `docker compose down` を実行する。
46+
4347
また以下のように同コマンドへオプションを指定すると、インクリメンタルビルドと
4448
変更監視&自動再ビルド機能が有効になる。
4549

_scripts/docker_jekyll_serve

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010

1111
set -eu
1212

13-
docker compose run -d --rm -p 4000:4000 jekyll jekyll server -H 0.0.0.0 "$@"
13+
docker compose run --rm -p 4000:4000 jekyll jekyll server -H 0.0.0.0 "$@"

0 commit comments

Comments
 (0)