Reputation: 1924
I was using gitlab build of jekyll project, all of a sudden started receiving following error. Not able to solve after a lot of trials. What to do in .gitlab-ci.yml file to resolve this (*error not appearing in local machine, both .gitlab-ci.yml and locally uses "grunt build" command).
Liquid Exception: invalid byte sequence in US-ASCII in _layouts/redirect.html
Upvotes: 3
Views: 745
Reputation: 507
This solution worked for me.
Put:
before_script:
- apt-get update >/dev/null
- apt-get install -y locales >/dev/null
- echo "en_US UTF-8" > /etc/locale.gen
- locale-gen en_US.UTF-8
- export LANG=en_US.UTF-8
- export LANGUAGE=en_US:en
- export LC_ALL=en_US.UTF-8
In before_script
directive in your .gitlab-ci.yml
.
Upvotes: 1
Reputation: 1924
Solved this very tricky issue by following:
node_modules
and bower_components
.gitlab-ci.yml
and GemFile
.gitlab-ci.yml
and GemFile
to latest versionsUpvotes: 0