Skip to content

Commit 051d6cb

Browse files
committedJul 11, 2017
improve local build
1 parent e228df3 commit 051d6cb

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed
 

‎README.md

+16-6
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,29 @@
22

33
This repo contains the source code for atoum website, [atoum.org](http://atoum.org).
44

5-
## Install
5+
## Build & preview locally
66

7-
* Clone repository
8-
* Install dependencies (assuming you have a working [bundler](http://bundler.io/) installation).
7+
* Clone this repository
8+
* Use one of the following method
9+
* Then use your favorite browser to [preview it](http://127.0.0.1:4000)
10+
11+
### Using bundle
12+
13+
Install dependencies (assuming you have a working [bundler](http://bundler.io/) installation).
914

1015
```bash
1116
bundle install
17+
bundle exec jekyll serve --watch
1218
```
1319

14-
* Launch local server with generated website
20+
### Using docker
1521

1622
```bash
17-
bundle exec jekyll serve --watch
23+
docker run -i -t -v $PWD:/srv/jekyll -p 4000:4000 jekyll/jekyll:pages jekyll serve --watch
1824
```
1925

20-
* Access to [http://127.0.0.1:4000](http://127.0.0.1:4000) on your favorite browser.
26+
### Using docker-compose
27+
28+
```bash
29+
docker-compose up
30+
```

‎docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ jekyll:
22
image: jekyll/jekyll:pages
33
volumes:
44
- .:/srv/jekyll
5+
command: ['jekyll', 'serve', '--watch']
56
ports:
67
- 4000:4000
78
environment:

0 commit comments

Comments
 (0)