Put it in a docker

This commit is contained in:
Nick Sellen 2018-11-30 11:45:48 +00:00 committed by Nick Sellen
parent ef6e94d08a
commit d9e3246c27
4 changed files with 29 additions and 2 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
_site

.idea
vendor

View File

@ -9,6 +9,17 @@ This is a port of the current Wordpress version of the [CoTech Website][] to a s
You can run the site on your computer as if it were live online using Jekyll. You will need `git` and `ruby` installed on your machine to do this. Then clone the repository
git clone git@git.coop:cotech/website.git
### ... using docker
Make sure you have [docker](https://docs.docker.com/install/) (CE is fine) installed and running, then:
cd website
./dev
And visit [localhost:4000](http://localhost:4000) to view the site.
### ... directly on your machine
Install the dependencies for the project

View File

@ -1,7 +1,10 @@
---
title: Cotech Website
timezone: UTC
exclude: ['scripts']
exclude:
- scripts
- vendor
- .idea
collections:
clients:
title: Clients

12
dev Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
set -eu
docker run --rm -it \
-v $(pwd):/src \
-p 4000:4000 \
ruby:2.5.3 sh -c '
cd /src &&
bundle --path vendor &&
bundle exec jekyll serve --host 0.0.0.0 --port 4000
'