Add a docker-compose.yml file with livereload support and update readme to reflect #2

Merged
ern_st merged 3 commits from graffen/ulovliglogning.dk:master into master 2018-01-23 11:28:27 +00:00
3 changed files with 20 additions and 4 deletions

View file

@ -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

View file

@ -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)

9
docker-compose.yml Normal file
View file

@ -0,0 +1,9 @@
jekyll:
image: jekyll/jekyll
command: jekyll serve --livereload --reload_port 35729
ports:
- 4000:4000
- 35729:35729
volumes:
- .:/srv/jekyll