mirror of
https://git.coop/cotech/website.git
synced 2025-09-18 23:04:37 +00:00
Put it in a docker
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
_site
|
_site
|
||||||
|
.idea
|
||||||
|
vendor
|
||||||
|
11
README.md
11
README.md
@ -10,6 +10,17 @@ You can run the site on your computer as if it were live online using Jekyll. Yo
|
|||||||
|
|
||||||
git clone git@git.coop:cotech/website.git
|
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
|
Install the dependencies for the project
|
||||||
|
|
||||||
cd website
|
cd website
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
---
|
---
|
||||||
title: Cotech Website
|
title: Cotech Website
|
||||||
timezone: UTC
|
timezone: UTC
|
||||||
exclude: ['scripts']
|
exclude:
|
||||||
|
- scripts
|
||||||
|
- vendor
|
||||||
|
- .idea
|
||||||
collections:
|
collections:
|
||||||
clients:
|
clients:
|
||||||
title: Clients
|
title: Clients
|
||||||
|
12
dev
Executable file
12
dev
Executable 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
|
||||||
|
'
|
Reference in New Issue
Block a user