This repository was archived by the owner on May 20, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change
1
+ IMAGE =codingdojo
2
+
3
+ build :
4
+ docker build --pull -t ${IMAGE} .
5
+
6
+ hugo :
7
+ hugo server --buildDrafts --buildFuture --watch --bind 0.0.0.0
8
+
9
+ docker-dev : build
10
+ @docker rm -f codingdojo || true
11
+ docker run --name codingdojo -p 1313:1313 --rm -it -v $(shell pwd) :/site --entrypoint=/bin/bash ${IMAGE}
12
+
13
+
Original file line number Diff line number Diff line change @@ -25,18 +25,16 @@ Note that the current version of Hugo (0.34 as of this writing) seems to have pr
25
25
the content is laid out in this repo. Older versions (like 0.26 in the Docker image) work fine.
26
26
27
27
# serve local files with live-reload
28
- hugo server -w
28
+ make hugo
29
29
30
30
Open your browser on ` http://localhost:1313 ` and start your favorite editor!
31
31
32
32
### Using Hugo from the ` Dockerfile `
33
33
34
34
Assuming you have [ Docker] ( https://www.docker.com/community-edition ) installed, you build an image and run it:
35
35
36
- docker build -t codingdojo .
37
- docker run -p 1313:1313 --rm -it -v $(pwd):/site codingdojo hugo server -w --bind 0.0.0.0
38
-
39
- You only need to build the image once.
36
+ make docker-dev
37
+ make hugo
40
38
41
39
Open your browser on ` http://localhost:1313 ` and start your favorite editor!
42
40
You can’t perform that action at this time.
0 commit comments