gollum

incompatible character encodings: UTF-8 and ASCII-8BIT

When use gollum , you may be got this error, below can helps you solves the problem.

  • install gollum-rugged_adapter
  • start gullom with --adapter rugged
1
2
3
sudo apt-get install cmake
sudo gem install gollum-rugged_adapter
gollum --adapter rugged

Here is a detailed demo for Dockerfile

1
2
3
4
5
6
7
8
9
10
11
12
13
14

FROM ruby
RUN apt-get -y update && apt-get -y install libicu-dev
RUN gem install gollum
RUN gem install github-markdown org-ruby
# RUN gem install --pre gollum-rugged_adapter
RUN apt-get -y install cmake
RUN gem install gollum-rugged_adapter
VOLUME /docs
WORKDIR /docs
CMD ["gollum", "--port", "80", "--adapter", "rugged"]
#CMD ["gollum", "--port", "80"]

EXPOSE 80

More Infomation

Thanks for reading.