Put it in a docker

这个提交包含在:
Nick Sellen
2018-11-30 11:45:48 +00:00
提交者 Nick Sellen
父节点 ef6e94d08a
当前提交 d9e3246c27
共有 4 个文件被更改,包括 29 次插入2 次删除

3
.gitignore vendored
查看文件

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

.idea
vendor

查看文件

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

查看文件

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

12
dev 可执行文件
查看文件

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