File tree 2 files changed +17
-6
lines changed
2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
This repo contains the source code for atoum website, [ atoum.org] ( http://atoum.org ) .
4
4
5
- ## Install
5
+ ## Build & preview locally
6
6
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).
9
14
10
15
``` bash
11
16
bundle install
17
+ bundle exec jekyll serve --watch
12
18
```
13
19
14
- * Launch local server with generated website
20
+ ### Using docker
15
21
16
22
``` 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
18
24
```
19
25
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
+ ```
Original file line number Diff line number Diff line change 2
2
image : jekyll/jekyll:pages
3
3
volumes :
4
4
- .:/srv/jekyll
5
+ command : ['jekyll', 'serve', '--watch']
5
6
ports :
6
7
- 4000:4000
7
8
environment :
You can’t perform that action at this time.
0 commit comments