From 52d83b5a24e9740e11416960229bdb15f840737e Mon Sep 17 00:00:00 2001 From: Jeppe Ernst Date: Sat, 7 Jul 2018 22:38:37 +0200 Subject: [PATCH] speed up build time by caching gems --- .gitignore | 2 +- docker-compose-deploy.yml | 2 +- docker-compose.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 59d6246..51be83f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ _site -.sass-cache +.*-cache .jekyll-metadata _scripts/config.sh \ No newline at end of file diff --git a/docker-compose-deploy.yml b/docker-compose-deploy.yml index e5f8997..cefd377 100644 --- a/docker-compose-deploy.yml +++ b/docker-compose-deploy.yml @@ -1,4 +1,3 @@ - jekyll: image: jekyll/builder command: bash /srv/jekyll/_scripts/build-then-deploy.sh @@ -6,3 +5,4 @@ jekyll: - 4000:4000 volumes: - .:/srv/jekyll + - ./.gem-cache/bundle:/usr/local/bundle \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 84d3fcc..9bc34e6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,3 @@ - jekyll: image: jekyll/jekyll command: jekyll serve --livereload --reload_port 35729 @@ -7,3 +6,4 @@ jekyll: - 35729:35729 volumes: - .:/srv/jekyll + - ./.gem-cache/bundle:/usr/local/bundle