ruby 项目启动

2015-09-21 09:07:48 +08:00
 keithsun80

之前公司的一个项目,目前开发人员基本都撤离了, 现在服务挂掉了, 我根据之前负责任给我的启动命令,起不来呢, 命令如下

bundle exec unicorn_rails -c /mnt/app/das_production/current/config/unicorn/production.rb -E production -D

异常如下

root@ubuntu002:/mnt/app/das_production/current# bundle exec unicorn_rails -c /mnt/app/das_production/current/config/unicorn/production.rb -E production -D
/mnt/app/das_production/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.3/lib/unicorn/configurator.rb:664:in parse_rackup_file': invalid byte sequence in US-ASCII (ArgumentError )
from /mnt/app/das_production/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.3/lib/unicorn/configurator.rb:77:in
reload'
from /mnt/app/das_production/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.3/lib/unicorn/configurator.rb:68:in initialize'
from /mnt/app/das_production/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:100:in
new'
from /mnt/app/das_production/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:100:in initialize'
from /mnt/app/das_production/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.3/bin/unicorn_rails:209:in
new'
from /mnt/app/das_production/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.3/bin/unicorn_rails:209:in <top (required )>'
from /mnt/app/das_production/shared/bundle/ruby/2.2.0/bin/unicorn_rails:23:in
load'
from /mnt/app/das_production/shared/bundle/ruby/2.2.0/bin/unicorn_rails:23:in `<main>'
master failed to start, check stderr log for details

这是怎么回事呢。。。

2678 次点击
所在节点    问与答
5 条回复
lululau
2015-09-21 09:11:25 +08:00
如果代码没有改动过的话,那估计是 ruby 版本问题,换成 1.8.7 试试
keithsun80
2015-09-21 09:23:33 +08:00
@lululau 嗯, 之前负责人帮忙起过一起, 他说,就是用这个命令, 我用就不行,是我的姿势不对?
lichao
2015-09-21 09:26:57 +08:00
@keithsun80 如果这个项目还想继续下去,赶紧找个懂 ruby 的负责维护吧,专职、兼职都可以。
某种程度上来说 ruby 项目不像 php 那么好维护,这样说会不会被 php 粉丝开喷?
keithsun80
2015-09-21 09:28:43 +08:00
@lichao 不想进行下去了呢, 只是这个项目还有它最后的使命没有完成, 还好我是 Python
serco
2015-09-21 10:21:41 +08:00
@keithsun80
在 shell 的环境里加上
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
试试

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/222324

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX