Skip to content

Commit

Permalink
Added Docker note to README, closes #21
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminEHowe committed Jun 30, 2024
1 parent 4dc5d6a commit d36043b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@ Benjamin Howe's personal website, deployed to Cloudflare Pages. Originally gener

## Installation

[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)).
Clone this repository in a convenient location.

Install gems using `bundle install`.
To run locally without Docker [install Ruby and Jekyll](https://jekyllrb.com/docs/step-by-step/01-setup/).

## Usage

Run `bundle exec jekyll serve` and navigate to http://127.0.0.1:4000.
Install gems using `bundle install` and then run `bundle exec jekyll serve` and navigate to http://127.0.0.1:4000.

### Using Docker

- 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"`
- 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"`

## Tests

Expand Down

0 comments on commit d36043b

Please sign in to comment.