1

在我为我的独角兽实例执行kill -9 pid_of_unicorn命令后,我永远无法重新启动它。我unicorn master -c config/unicorn.rb在 rails 应用程序根路径和 unicorn.rb 文件中使用,这是我在 rails 配置目录中的独角兽配置文件​​。

/home/wujing/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/unicorn-4.8.3/lib/unicorn/configurator.rb:659:in `parse_rackup_file': rackup file (master) not readable (ArgumentError)
  from /home/wujing/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/unicorn-4.8.3/lib/unicorn/configurator.rb:77:in `reload'
  from /home/wujing/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/unicorn-4.8.3/lib/unicorn/configurator.rb:68:in `initialize'
  from /home/wujing/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:100:in `new'
  from /home/wujing/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:100:in `initialize'
  from /home/wujing/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/unicorn-4.8.3/bin/unicorn:126:in `new'
  from /home/wujing/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/unicorn-4.8.3/bin/unicorn:126:in `<top (required)>'
  from /home/wujing/.rbenv/versions/2.1.5/bin/unicorn:23:in `load'
  from /home/wujing/.rbenv/versions/2.1.5/bin/unicorn:23:in `<main>'

有人遇到过类似的问题吗?

4

1 回答 1

4

独角兽大师 -c config/unicorn.rb

不知道master你的命令是什么意思。这是您可以尝试的:

bundle exec unicorn -D -E <environment> -c config/unicorn.rb
于 2015-04-11T14:44:06.127 回答