You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-3
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,18 @@ Benjamin Howe's personal website, deployed to Cloudflare Pages. Originally gener
4
4
5
5
## Installation
6
6
7
-
[Install Ruby and Jekyll](https://jekyllrb.com/docs/step-by-step/01-setup/), then clone this repository in a convenient location. In the future it might be nice to have these dependencies within a container ([there's a GitHub issue for that](https://github.com/BenjaminEHowe/beh.uk/issues/21)).
7
+
Clone this repository in a convenient location.
8
8
9
-
Install gems using `bundle install`.
9
+
To run locally without Docker [install Ruby and Jekyll](https://jekyllrb.com/docs/step-by-step/01-setup/).
10
10
11
11
## Usage
12
12
13
-
Run `bundle exec jekyll serve` and navigate to http://127.0.0.1:4000.
13
+
Install gems using `bundle install` and then run `bundle exec jekyll serve` and navigate to http://127.0.0.1:4000.
14
+
15
+
### Using Docker
16
+
17
+
- Windows (cmd): `docker run -it --rm -v %cd%:/app -w /app -p 127.0.0.1:4000:4000 ruby:3.3.1 sh -c "bundle install && bundle exec jekyll serve --force_polling -H 0.0.0.0"`
18
+
- macOS & Linux (bash): `docker run -it --rm -v "$PWD":/app -w /app -p 127.0.0.1:4000:4000 ruby:3.3.1 sh -c "bundle install && bundle exec jekyll serve -H 0.0.0.0"`
0 commit comments