diff --git a/Gemfile b/Gemfile index 3ddd449..a421420 100644 --- a/Gemfile +++ b/Gemfile @@ -18,6 +18,7 @@ gem "github-pages", group: :jekyll_plugins # If you have any plugins, put them here! group :jekyll_plugins do gem "jekyll-feed", "~> 0.6" + gem "jekyll-livereload" end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem diff --git a/README.md b/README.md index 39fec65..1285927 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,20 @@ # Jekyll site for ulovliglogning.dk -## Install +## To work on the code, either -### Install Jekyll and Bundler gems through RubyGems +### Use docker +You need docker-compose. Simply run +`docker-compose up` to launch the site in a docker container with livereload support. + +### Or install Jekyll locally + +#### Install Jekyll and Bundler gems through RubyGems `gem install jekyll bundler` -### Install dependencies +#### Install dependencies `bundle install` -### Build the site local +#### Build the site local `bundle exec jekyll serve` You can now see the site at [localhost:4000](http://localhost:4000) diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..84d3fcc --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ + +jekyll: + image: jekyll/jekyll + command: jekyll serve --livereload --reload_port 35729 + ports: + - 4000:4000 + - 35729:35729 + volumes: + - .:/srv/jekyll