diff --git a/jekyll_debug.sh b/jekyll_debug.sh deleted file mode 100755 index b55c794..0000000 --- a/jekyll_debug.sh +++ /dev/null @@ -1,19 +0,0 @@ -#! /bin/sh -IDu=$(id -u) # UID saves your user id in the ID variable -IDg=$(id -g) # GID - -docker run --rm \ - -p 0.0.0.0:4000:4000 \ - --hostname=jekyll \ - --name=jekyll \ - -v $PWD:/srv/jekyll \ - -v $PWD/cache:/usr/local/bundle \ - -v $PWD/build:/srv/jekyll/build \ - -e 'TZ=Europe/Amsterdam' \ - -e JEKYLL_UID=$IDu \ - -e JEKYLL_GID=$IDg \ - jekyll/jekyll \ - jekyll serve --source /srv/jekyll \ - --destination /srv/jekyll/build \ - --watch \ - --force_polling \ diff --git a/docker-compose.yml b/scripts/docker-compose.yml similarity index 70% rename from docker-compose.yml rename to scripts/docker-compose.yml index 0a44b60..a67a382 100644 --- a/docker-compose.yml +++ b/scripts/docker-compose.yml @@ -2,15 +2,15 @@ version: '3' services: jekyll: - image: jekyll/jekyll:latest + image: jekyll/jekyll:stable command: jekyll serve --watch --force_polling --verbose --source /srv/jekyll --destination /srv/jekyll/build # command: jekyll serve ports: - 4000:4000 volumes: - - .:/srv/jekyll - - ./cache:/usr/local/bundle - - ./build:/srv/jekyll/build + - ..:/srv/jekyll + - ../cache:/usr/local/bundle + - ../build:/srv/jekyll/build environment: - TZ=Europe/Amsterdam # - JEKYLL_ENV:production diff --git a/jekyll_debug.bat b/scripts/jekyll_debug.bat similarity index 100% rename from jekyll_debug.bat rename to scripts/jekyll_debug.bat diff --git a/scripts/jekyll_debug.sh b/scripts/jekyll_debug.sh index b55c794..9951357 100755 --- a/scripts/jekyll_debug.sh +++ b/scripts/jekyll_debug.sh @@ -12,7 +12,7 @@ docker run --rm \ -e 'TZ=Europe/Amsterdam' \ -e JEKYLL_UID=$IDu \ -e JEKYLL_GID=$IDg \ - jekyll/jekyll \ + jekyll/jekyll:stable \ jekyll serve --source /srv/jekyll \ --destination /srv/jekyll/build \ --watch \