Skip to content

Commit

Permalink
Add option for docker usage
Browse files Browse the repository at this point in the history
  • Loading branch information
gruel-coveo committed Dec 12, 2023
1 parent 6acbde3 commit 1f1e041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ You should also add a `<!-- more -->` tag towards the beginning of your post, ty

To preview your post locally, you can install [Ruby and Jekyll](https://jekyllrb.com/docs/), and run the `bundle exec jekyll serve` command from your folder. The site will be available on your [localhost:4000](http://localhost:4000).

Alternatively, with docker you can host a local Jekyll server using `docker run --platform linux/amd64 --volume=$(pwd):/srv/jekyll -p 4000:4000 jekyll/jekyll:4.2.0 jekyll server` from the root of your repository. If you're getting permission denied errors, try deleting the `.jekyll-cache` and `_site` folders; they will get regenerated by jekyll. Note that if the date in the file name of your post is in the future, you won't be able to see it.
Alternatively, with docker you can host a local Jekyll server using `docker run --platform linux/amd64 --volume=$(pwd):/srv/jekyll -p 4000:4000 jekyll/jekyll:4.2.0 jekyll server` from the root of your repository. If you're getting permission denied errors, try deleting the `.jekyll-cache` and `_site` folders; they will get regenerated by jekyll. You can also add `-e JEKYLL_UID=<CURRENT_HOST_USER_ID>` to give the Jekyll user the same folder permissions as your host user. Note that if the date in the file name of your post is in the future, you won't be able to see it.

## Detailed Steps

Expand Down

0 comments on commit 1f1e041

Please sign in to comment.