hamayuzinの日記

エンジニアとかデータサイエンティストとかやってます。あの時 あれやってたな的な備忘録にできれば。

ridgepole本番deploy時に invalid multibyte char (US-ASCII)

ridgepoleを使って、rails project deploy時に

bundle stderr: fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
SyntaxError: Schemafile:179: invalid multibyte char (US-ASCII)
Schemafile:179: invalid multibyte char (US-ASCII)
Schemafile:179: syntax error, unexpected end-of-input, expecting keyword_end
                  default: "ほげほげ"

mysqlのdefault値に日本語入っていた場合

ridgepoleのschemafile(Schemafileとかにしている場合が多い)に

# encoding: utf-8

を追記すれば、解決