1
0
hugo/old/2017-04-13-ruby.md
2024-12-21 22:23:54 +09:00

37 lines
762 B
Markdown

+++
date = "2017-04-13"
tags = ["ruby"]
title = "octopress-wercker"
slug = "ruby"
+++
OctopressをWerckerでビルド、デプロイしようとした時にハマった話(何度目?)。
(1) なぜかdeployのworkflowsを作らないとbuild(rake gen)が通らない、原因不明(意味不明)
(2) `autodetect': Could not find a JavaScript runtime.
> Gemfile
```
gem 'therubyracer', :platforms => :ruby
```
(3) Liquid Exception: invalid byte sequence in US-ASCII in foo.html
> wercker.yml
```
- install-packages:
packages: git ssh-client locales
- script:
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
```
もう触りたくない。