37 lines
762 B
Markdown
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
|
|
```
|
|
|
|
もう触りたくない。
|
|
|