Skip to content

Commit

Permalink
Set UID and GID on run-local to avoid permission errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kidk committed Mar 9, 2018
1 parent ad57f4c commit 237fc1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions run-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ export JEKYLL_VERSION=3.5
docker run --rm \
--volume="$PWD:/srv/jekyll" \
--volume="$PWD/vendor/bundle:/usr/local/bundle" \
-e JEKYLL_UID=$(id -u) \
-e JEKYLL_GID=$(id -g) \
-p 4000:4000 \
-it jekyll/jekyll:$JEKYLL_VERSION \
jekyll serve --watch --incremental

0 comments on commit 237fc1d

Please sign in to comment.