== 测试服务器是: test132 == 正式服务器是: 133, 134 == which server do you want to deploy to? (test132/133/134/83)? 134 == password for 10.xxx.xx.134 is: triggering start callbacks for `deploy' * executing `rbenv:setup_default_environment' * executing "echo "$HOME/.rbenv"" servers: ["10.100.27.134"] connection failed for: 10.xxx.xx.134 (ArgumentError: invalid byte sequence in US-ASCII)
网上写的解决方法主要有两种,我是用第一种方法解决的
(1)修改本机的语言设置
export LANG="en_US.UTF-8" export LC_ALL="en_US.UTF-8"
楼主只用以上两句解决了问题,发现有的网站还补充了一句,我没执行下面这句就已经能部署了
export LANGUAGE=en_US.UTF-8
(2)修改Gemfile, put this into your Gemfile , 楼主没有用这个方法,有足够探索未知世界的好奇宝宝们可以撸袖子试试
if RUBY_VERSION =~ /1.9/ Encoding.default_external = Encoding::UTF_8 Encoding.default_internal = Encoding::UTF_8 end