basecamp / kamal

Deploy web apps anywhere.
https://kamal-deploy.org
MIT License
9.39k stars 359 forks source link

don't escape non-ascii characters in docker env file #773

Closed xiaohui-zhangxh closed 2 months ago

xiaohui-zhangxh commented 2 months ago

according to https://github.com/basecamp/kamal/issues/724

kamal env push will cast non-ascii to \uxxxx, this makes wrong value after env variable is loaded from Rails.

env:
  clear:
    ENV_TEST: 中个

becomes to

ENV_TEST= \u4E2D\u4E2A

this fix keeps String#dump only for ascii characters.