File tree Expand file tree Collapse file tree 4 files changed +17
-2
lines changed
Expand file tree Collapse file tree 4 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 1010.Rhistory
1111.RData
1212.vendor /
13+ .docker-vendor /
1314Gemfile.lock
Original file line number Diff line number Diff line change 44# Settings
55MAKEFILES =Makefile $(wildcard * .mk)
66JEKYLL_VERSION =3.8.5
7- JEKYLL_DOCKER =${JEKYLL} serve --host 0.0.0.0
87JEKYLL =bundle install --path .vendor/bundle && bundle update && bundle exec jekyll
98PARSER =bin/markdown_ast.rb
109DST =_site
@@ -44,7 +43,11 @@ commands :
4443
4544# # docker-serve : use docker to build the site
4645docker-serve :
47- docker run --rm -it -v ${PWD} :/srv/jekyll -p 4000:4000 jekyll/jekyll:${JEKYLL_VERSION} ${JEKYLL_DOCKER}
46+ docker run --rm -it --volume ${PWD} :/srv/jekyll \
47+ --volume =${PWD}/.docker-vendor/bundle:/usr/local/bundle \
48+ -p 127.0.0.1:4000:4000 \
49+ jekyll/jekyll:${JEKYLL_VERSION} \
50+ bin/run-make-docker-serve.sh
4851
4952# # serve : run a local server.
5053serve : lesson-md
Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ exclude:
9292 - bin/
9393 - .Rproj.user/
9494 - .vendor/
95+ - .docker-vendor/
9596
9697# Turn on built-in syntax highlighting.
9798highlighter : rouge
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -o errexit
4+ set -o pipefail
5+ set -o nounset
6+
7+
8+ bundle install
9+ bundle update
10+ exec bundle exec jekyll serve --host 0.0.0.0
You can’t perform that action at this time.
0 commit comments