This commit is contained in:
rzen 2019-07-22 23:57:15 -04:00
parent 9e4a5bf2c8
commit 82f62d0cb5

View File

@ -6,8 +6,6 @@ services:
jekyll-serve: jekyll-serve:
container_name: jekyll-serve container_name: jekyll-serve
image: jekyll/jekyll image: jekyll/jekyll
# here's why we need --host 0.0.0.0
# https://superuser.com/questions/949428/whats-the-difference-between-127-0-0-1-and-0-0-0-0
command: bash -c "bundle update && bundle exec jekyll serve --host 0.0.0.0 --future --draft --force_polling --livereload" command: bash -c "bundle update && bundle exec jekyll serve --host 0.0.0.0 --future --draft --force_polling --livereload"
environment: environment:
JEKYLL_ENV: local JEKYLL_ENV: local
@ -29,8 +27,8 @@ services:
require \"rubygems\"; \ require \"rubygems\"; \
spec = Gem::Specification::load(\"jekyll-theme-isabelline.gemspec\"); \ spec = Gem::Specification::load(\"jekyll-theme-isabelline.gemspec\"); \
puts \"#{spec.version}\"'` \ puts \"#{spec.version}\"'` \
&& gem push jekyll-theme-isabelline-$${GEM_VER}.gem \ && xgem push jekyll-theme-isabelline-$${GEM_VER}.gem \
&& rm jekyll-theme-isabelline--*.gem && xrm jekyll-theme-isabelline-*.gem
" "
volumes: volumes:
- .:/srv/jekyll - .:/srv/jekyll