我正在尝试设置 Resque。我在我的 environment.rb 中有以下内容
config.gem "redis", :version => "3.0"
config.gem "redis-namespace", :version => "1.2.1", :lib => "redis/namespace"
config.gem "resque", :version => "1.23.0"
在开始之前,我跟随asciicastresque-web
。在我的控制器中,我有
Resque.enqueue(SnippetHighlighter, @snippet.id)
就像在 asciiccast 中给出的例子一样。但是,我的进程没有转发到后台,而是转发到 rails 服务器。根据 asciicast 的说法,我不应该rails server
在 resque 中出现错误。
此外,当我启动我的 resque-web 时,我收到以下错误:
/usr/lib/ruby1.8/net/http.rb:560: in 'initialize': getaddrinfo: Name or
service not known(SocketError)
谁能帮我解决这个问题?