Skip to content

Commit 40dbd20

Browse files
authored
Update local_previews.md
add some hints about working around problems
1 parent bcab269 commit 40dbd20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/local_previews.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $ bundle exec jekyll serve
2525
```
2626

2727
and open your browser to <http://localhost:4000>.
28-
If you are having trouble try `rm -rf _site`, followed by `bundle update`, then `bundle exec jekyll serve`.
28+
If you are having trouble try `rm -rf _site Gemfile.lock`, followed by `bundle update`, then `bundle exec jekyll serve`.
2929

3030

3131
## Container-based development
@@ -75,7 +75,7 @@ podman run --rm -it -p 4000:4000 \
7575
us-rse-website:latest
7676
```
7777

78-
If these commands fail, you may need to address any discrepancies between the user/group mapping in your container runtime and the permissions on the directory where the volume mount resides.
78+
If these commands fail with Ruby/Jekyll errors, remove your local copy of `Gemfile.lock` with `rm Gemfile.lock` and try again. If these commands fail with permission errors, you may need to address discrepancies between the user/group mapping in your container runtime and the permissions on the directory where the volume mount resides.
7979

8080
Edit a source file and save the changes. You will see Jekyll automatically regenerate the site, after which you can reload the page in your browser to see the rendered changes.
8181

0 commit comments

Comments
 (0)